Skip to content

Commit 5072e43

Browse files
Merge pull request #76 from arijitde92/pdf_rtd_doc
Added PDF and ePub download option for RTD documentation as requested in aboutcode-org/aboutcode#127
2 parents 8d205ef + e3aaf63 commit 5072e43

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

.readthedocs.yml

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# Required
66
version: 2
77

8+
# Build PDF & ePub
9+
formats:
10+
- epub
11+
- pdf
12+
813
# Where the Sphinx conf.py file is located
914
sphinx:
1015
configuration: docs/source/conf.py

docs/source/conf.py

+6
Original file line numberDiff line numberDiff line change
@@ -95,3 +95,9 @@
9595
.. role:: img-title-para
9696
9797
"""
98+
99+
# -- Options for LaTeX output -------------------------------------------------
100+
101+
latex_elements = {
102+
'classoptions': ',openany,oneside'
103+
}

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ testing =
5858
isort
5959

6060
docs =
61-
Sphinx == 6.2.1
61+
Sphinx == 5.1.0
6262
sphinx-rtd-theme >= 0.5.0
6363
doc8 >= 0.8.1

0 commit comments

Comments
 (0)