Skip to content

Commit f478045

Browse files
authored
Merge pull request #622 from iory/ga-docs
Add PDF build test to documentation workflow
2 parents 9d99b09 + 41d4ebc commit f478045

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,19 @@ jobs:
5555
run: |
5656
python -m pip install --upgrade pip
5757
pip install --no-cache-dir .\[all\]
58-
- name: Build Sphinx Documentation
58+
- name: Build Sphinx Documentation (HTML)
5959
working-directory: ./docs/source
6060
run: |
6161
mkdir -p _build/doctrees
6262
sphinx-build -T -W --keep-going -b html -d _build/doctrees -D language=en . _build/html
63+
- name: Install LaTeX dependencies
64+
run: |
65+
sudo apt-get update -qq -y
66+
sudo apt-get install -qq -y texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended latexmk
67+
- name: Build Sphinx Documentation (PDF)
68+
working-directory: ./docs
69+
run: |
70+
make latexpdf
6371
6472
requirements-formatting:
6573
name: Check Requirements Formatting

docs/source/conf.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@
149149

150150
# Additional stuff for the LaTeX preamble.
151151
#
152-
# 'preamble': '',
152+
'preamble': r'''
153+
\usepackage{enumitem}
154+
\setlistdepth{99}
155+
''',
153156

154157
# Latex figure (float) alignment
155158
#

docs/source/index.rst

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,15 @@ Scikit-Robot is a simple pure-Python library for loading, manipulating, and visu
66
URDF files and robot specifications. For example, here's a rendering of a PR2
77
robot moving after being loaded by this library.
88

9-
.. image:: ../image/pr2.gif
10-
:align: center
9+
.. only:: html
10+
11+
.. image:: ../image/pr2.gif
12+
:align: center
13+
14+
.. only:: latex
15+
16+
.. image:: ../image/pr2.png
17+
:align: center
1118

1219
.. toctree::
1320
:maxdepth: 2

0 commit comments

Comments
 (0)