Skip to content

Commit 10a3899

Browse files
committed
Merge branch 'main' into release/0.2
2 parents 2ec8de1 + 9e6f627 commit 10a3899

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

.github/workflows/ci_cd.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545

4646
- name: Install packages for documentation build
4747
run: |
48-
sudo apt-get install xvfb pandoc
48+
sudo apt-get install xvfb pandoc texlive-latex-extra latexmk
4949
pip install --upgrade build
5050
pip install .[doc]
5151
@@ -56,17 +56,28 @@ jobs:
5656
sleep 10
5757
cd -
5858
59-
- name: Build the documentation
59+
- name: Build the documentation (HTML)
6060
run: |
6161
xvfb-run make -C doc html
6262
63+
- name: Build the documentation (PDF)
64+
run: |
65+
xvfb-run make -C doc pdf
66+
6367
- name: Upload HTML documentation
6468
uses: actions/upload-artifact@v3
6569
with:
6670
name: documentation-html
6771
path: doc/_build/html
6872
retention-days: 7
6973

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+
7081
- name: Upload the server logs
7182
if: always()
7283
uses: actions/upload-artifact@v3

doc/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# You can set these variables from the command line, and also
55
# from the environment for the first two.
6-
SPHINXOPTS = -j auto -W --color
6+
SPHINXOPTS = -j auto
77
SPHINXBUILD = sphinx-build
88
SOURCEDIR = source
99
BUILDDIR = _build
@@ -27,4 +27,4 @@ clean:
2727
pdf:
2828
@$(SPHINXBUILD) -M latex "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
2929
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

0 commit comments

Comments
 (0)