File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 45
45
46
46
- name : Install packages for documentation build
47
47
run : |
48
- sudo apt-get install xvfb pandoc
48
+ sudo apt-get install xvfb pandoc texlive-latex-extra latexmk
49
49
pip install --upgrade build
50
50
pip install .[doc]
51
51
@@ -56,17 +56,28 @@ jobs:
56
56
sleep 10
57
57
cd -
58
58
59
- - name : Build the documentation
59
+ - name : Build the documentation (HTML)
60
60
run : |
61
61
xvfb-run make -C doc html
62
62
63
+ - name : Build the documentation (PDF)
64
+ run : |
65
+ xvfb-run make -C doc pdf
66
+
63
67
- name : Upload HTML documentation
64
68
uses : actions/upload-artifact@v3
65
69
with :
66
70
name : documentation-html
67
71
path : doc/_build/html
68
72
retention-days : 7
69
73
74
+ - name : Upload PDF documentation
75
+ uses : actions/upload-artifact@v3
76
+ with :
77
+ name : documentation-pdf
78
+ path : doc/_build/latex/*.pdf
79
+ retention-days : 7
80
+
70
81
- name : Upload the server logs
71
82
if : always()
72
83
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change 3
3
4
4
# You can set these variables from the command line, and also
5
5
# from the environment for the first two.
6
- SPHINXOPTS = -j auto -W --color
6
+ SPHINXOPTS = -j auto
7
7
SPHINXBUILD = sphinx-build
8
8
SOURCEDIR = source
9
9
BUILDDIR = _build
27
27
pdf :
28
28
@$(SPHINXBUILD ) -M latex " $( SOURCEDIR) " " $( BUILDDIR) " $(SPHINXOPTS ) $(O )
29
29
cd $(BUILDDIR ) /latex && latexmk -r latexmkrc -pdf * .tex -interaction=nonstopmode || true
30
- (test -f $( BUILDDIR) /latex/* .pdf && echo pdf exists) || exit 1
30
+ (test -f $( BUILDDIR) /latex/* .pdf && echo pdf exists) || exit 1
You can’t perform that action at this time.
0 commit comments