Skip to content

Commit 9fcd8e0

Browse files
committed
minor
1 parent 604aede commit 9fcd8e0

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/sphinx.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: "Doc build (HTML & PDF)"
1+
name: 'Doc build (HTML & PDF)'
22

3-
on:
3+
on:
44
push:
55
branches:
66
- master
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- name: Check out Git repository
1313
uses: actions/checkout@main
14-
14+
1515
- name: Install
1616
run: |
1717
sudo apt update
@@ -24,25 +24,27 @@ jobs:
2424
git clone https://github.com/FreeFem/FreeFem-parser-pygments.git ~/pygments
2525
sudo cp ~/pygments/freefem.py /usr/lib/python3/dist-packages/pygments/lexers/
2626
(cd /usr/lib/python3/dist-packages/pygments/lexers/ && sudo python _mapping.py)
27-
27+
2828
- name: Build PDF
2929
run: |
3030
make latex
3131
(cd build/latex && pdflatex -halt-on-error -interaction=nonstopmode -jobname FreeFEM-documentation FreeFEM.tex && pdflatex -halt-on-error -interaction=nonstopmode -jobname FreeFEM-documentation FreeFEM.tex)
32+
(cd build/latex && md5sum FreeFEM-documentation.pdf >> FreeFEM-documentation.pdf.md5)
3233
3334
- name: Build HTML
3435
run: |
3536
make html
3637
echo "doc.freefem.org" > build/html/CNAME
37-
mkdir build/html/pdf && cp build/latex/FreeFEM-documentation.pdf build/html/pdf/
38+
echo "TODO: Remove the PDF from the website repository at the next FreeFem-source release"
39+
mkdir build/htm/pdf && cp build/latex/FreeFEM-documentation.pdf build/html/pdf/
3840
(cd build/html/pdf && md5sum FreeFEM-documentation.pdf >> FreeFEM-documentation.pdf.md5)
39-
41+
4042
- name: Deploy HTML
4143
uses: JamesIves/github-pages-deploy-action@4.1.5
4244
with:
4345
branch: gh-pages
4446
folder: build/html
45-
47+
4648
- name: Deploy PDF
4749
uses: JamesIves/github-pages-deploy-action@4.1.5
4850
with:

source/introduction/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</p>
3434
<br>
3535
<p>
36-
<font size="4"> The user manual is available <a href="/pdf/FreeFEM-documentation.pdf"><img src="../_static/img/logo_pdf.png"width="25" height=""></a></font>
36+
<font size="4"> The user manual is also available in <a href="https://github.com/FreeFem/FreeFem-doc/raw/pdf/FreeFEM-documentation.pdf" style="display: inline-flex;">PDF <img src="../_static/img/logo_pdf.png"width="25" height=""></a></font>
3737
</p>
3838
<br>
3939
<br>

0 commit comments

Comments
 (0)