Skip to content

Commit 0358134

Browse files
committed
doc: Add latex to generate pdf
Add latex to generate pdf. Signed-off-by: divya pillai <divya.pillai@nordicsemi.no>
1 parent 4dfd28e commit 0358134

2 files changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/doc-build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
run: |
7272
doxygen
7373
sphinx-build -M html . build
74+
make latex
7475
7576
- name: Check version
7677
run: |
@@ -99,6 +100,7 @@ jobs:
99100
echo "${{ github.event.number }}" > pr.txt
100101
else
101102
ARCHIVE="legacy-addon-serial_modem-${VERSION}.zip"
103+
PDF="legacy-addon-serial_modem-${VERSION}.pdf"
102104
echo "publish2 main ${VERSION} ${ARCHIVE}" > "${MONITOR}"
103105
fi
104106
@@ -107,6 +109,8 @@ jobs:
107109
mv "${ARCHIVE}" "$PUBLISH"
108110
popd
109111
112+
cp "doc/build/latex/ncs-serial-modem.pdf" "$PUBLISH/${PDF}"
113+
110114
mv "${MONITOR}" "$PUBLISH"
111115
if [[ -f pr.txt ]]; then mv pr.txt "$PUBLISH"; fi
112116

doc/conf.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,19 @@
5454
.. include:: /links.txt
5555
.. include:: /shortcuts.txt
5656
"""
57+
58+
# -- Options for LaTeX output -------------------------------------------------
59+
60+
latex_engine = 'xelatex'
61+
62+
latex_elements = {
63+
'papersize': 'a4paper',
64+
'pointsize': '11pt',
65+
}
66+
67+
latex_documents = [
68+
('index', 'ncs-serial-modem.tex', f'{project} Documentation',
69+
author, 'manual'),
70+
]
71+
72+
figure_align = 'H'

0 commit comments

Comments
 (0)