Skip to content

Commit

Permalink
add a mirror for the pdf doc (#572)
Browse files Browse the repository at this point in the history
  • Loading branch information
csukuangfj authored Apr 11, 2024
1 parent a326744 commit 85200aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/build-doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,15 @@ jobs:
ls -lh sherpa.pdf
cp -v sherpa.pdf ../html/
- name: Release sherpa.pdf
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push'
uses: svenstaro/upload-release-action@v2
with:
file_glob: true
overwrite: true
file: ./docs/build/html/sherpa.pdf
tag: doc

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions docs/source/pdf.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ Please download it from the following address:

`<https://k2-fsa.github.io/sherpa/sherpa.pdf>`_

.. note::

For Chinese users, you can use the following mirror:

`<https://hub.nuaa.cf/k2-fsa/sherpa/releases/download/doc/sherpa.pdf>`_

Please always download the latest version.

The pdf file is updated automagically whenever the doc is changed.

0 comments on commit 85200aa

Please sign in to comment.