Skip to content

Commit 85200aa

Browse files
authored
add a mirror for the pdf doc (#572)
1 parent a326744 commit 85200aa

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/build-doc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ jobs:
107107
ls -lh sherpa.pdf
108108
cp -v sherpa.pdf ../html/
109109
110+
- name: Release sherpa.pdf
111+
if: (github.repository_owner == 'csukuangfj' || github.repository_owner == 'k2-fsa') && github.event_name == 'push'
112+
uses: svenstaro/upload-release-action@v2
113+
with:
114+
file_glob: true
115+
overwrite: true
116+
file: ./docs/build/html/sherpa.pdf
117+
tag: doc
118+
110119
- name: Deploy
111120
uses: peaceiris/actions-gh-pages@v3
112121
with:

docs/source/pdf.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ Please download it from the following address:
1111

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

14+
.. note::
15+
16+
For Chinese users, you can use the following mirror:
17+
18+
`<https://hub.nuaa.cf/k2-fsa/sherpa/releases/download/doc/sherpa.pdf>`_
19+
1420
Please always download the latest version.
1521

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

0 commit comments

Comments
 (0)