-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
104 changed files
with
1,504 additions
and
791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,3 @@ assignees: '' | |
|
||
<!-- 描述问题时,请尽可能详细。提供的信息越多,就越容易追踪和解决。--> | ||
|
||
## 系统信息 | ||
|
||
* 操作系统: | ||
* GMT 版本(`gmt --version`): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# This workflow downloads GMT data used in the documentation and uploads as artifacts | ||
# This workflow downloads data used in the documentation and uploads as an artifact | ||
name: Cache data | ||
|
||
on: | ||
|
@@ -17,18 +17,15 @@ jobs: | |
shell: bash -l {0} | ||
|
||
steps: | ||
# Setup Miniconda | ||
- name: Setup Miniconda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
channels: conda-forge | ||
miniconda-version: "latest" | ||
|
||
# Install GMT | ||
- name: Install GMT | ||
run: conda install -c conda-forge gmt=6.2.0 | ||
|
||
# Download remote files | ||
- name: Download remote data | ||
run: | | ||
gmt which -Ga @earth_relief_30m \ | ||
|
@@ -45,6 +42,8 @@ jobs: | |
# cache | ||
gmt which -Ga @age_chrons_GTS2012_2020.cpt \ | ||
@ternary.txt \ | ||
@mississippi.txt \ | ||
@NY_traffic.txt \ | ||
@sunglasses.eps | ||
# Download the china-geospatial-data datasets | ||
git clone --depth 1 https://github.com/gmt-china/china-geospatial-data china-geospatial-data | ||
|
@@ -55,9 +54,8 @@ jobs: | |
rm -rf GMT_custom_symbols/.git | ||
mv GMT_custom_symbols ~/.gmt/custom/ | ||
# Upload the downloaded files as artifacts to GitHub | ||
- name: Upload artifacts to GitHub | ||
uses: actions/upload-artifact@v2 | ||
uses: actions/upload-artifact@v2.2.4 | ||
with: | ||
name: gmt-cache | ||
path: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# This workflow compresses images in PRs | ||
name: Compress Images | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- '**.jpg' | ||
- '**.jpeg' | ||
- '**.png' | ||
- '**.webp' | ||
|
||
jobs: | ||
compress: | ||
if: github.event.pull_request.head.repo.full_name == github.repository | ||
name: Compress Images | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
- name: Compress Images | ||
uses: calibreapp/[email protected] | ||
with: | ||
githubToken: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,6 @@ jobs: | |
run: | ||
shell: bash -l {0} | ||
steps: | ||
# Cancel previous runs that are not completed | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
|
@@ -38,7 +37,6 @@ jobs: | |
conda install gmt=${GMT_VERSION} | ||
pip install -r requirements.txt | ||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
|
@@ -83,8 +81,15 @@ jobs: | |
- name: Push the documentation to gh-pages | ||
run: | | ||
cd deploy | ||
# generate the .nojekyll file in the root directory | ||
touch .nojekyll | ||
# Update the directory | ||
# generate CNAME in the root directory | ||
echo docs.gmt-china.org > CNAME | ||
# Use the old PDF documentation if the new PDF documentation is not built | ||
if [ ! -f ../build/dirhtml/GMT_docs.pdf ]; then | ||
cp ${GMT_DOC_VERSION}/GMT_docs.pdf ../build/dirhtml/ | ||
fi | ||
# Replace the old documentation with tht new one. | ||
rm -rvf ${GMT_DOC_VERSION} | ||
cp -rvf ../build/dirhtml/ ${GMT_DOC_VERSION}/ | ||
# let "latest" link to the latest version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,12 @@ jobs: | |
run: | ||
shell: bash -l {0} | ||
steps: | ||
# Cancel previous runs that are not completed | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
||
- name: Checkout | ||
uses: actions/[email protected] | ||
|
||
# Setup Miniconda | ||
- name: Setup Miniconda | ||
uses: conda-incubator/[email protected] | ||
with: | ||
|
@@ -35,7 +33,6 @@ jobs: | |
conda install -c conda-forge gmt=${GMT_VERSION} | ||
pip install -r requirements.txt | ||
# Download cached remote files (artifacts) from GitHub | ||
- name: Download remote data from GitHub | ||
uses: dawidd6/[email protected] | ||
with: | ||
|
@@ -44,7 +41,6 @@ jobs: | |
name: gmt-cache | ||
path: .gmt | ||
|
||
# Move downloaded files to ~/.gmt directory and list them | ||
- name: Move and list downloaded remote files | ||
run: | | ||
mkdir -p ~/.gmt | ||
|
@@ -54,8 +50,7 @@ jobs: | |
ls -lhR ~/.gmt | ||
- name: Build HTML | ||
run: | | ||
make dirhtml | ||
run: make build_html | ||
|
||
- name: Deploy for preview | ||
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 | ||
|
@@ -74,7 +69,7 @@ jobs: | |
if: github.event.pull_request.head.repo.full_name == github.repository | ||
|
||
- name: Find Comment | ||
uses: peter-evans/find-comment@v1 | ||
uses: peter-evans/find-comment@v1.2.0 | ||
id: fc | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
|
@@ -83,7 +78,7 @@ jobs: | |
if: github.event.pull_request.head.repo.full_name == github.repository | ||
|
||
- name: Create comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
uses: peter-evans/create-or-update-comment@v1.4.5 | ||
with: | ||
issue-number: ${{ github.event.pull_request.number }} | ||
body: | | ||
|
@@ -94,7 +89,7 @@ jobs: | |
if: github.event.pull_request.head.repo.full_name == github.repository && steps.fc.outputs.comment-id == 0 | ||
|
||
- name: Update comment | ||
uses: peter-evans/create-or-update-comment@v1 | ||
uses: peter-evans/create-or-update-comment@v1.4.5 | ||
with: | ||
comment-id: ${{ steps.fc.outputs.comment-id }} | ||
edit-mode: replace | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.