Skip to content

Commit

Permalink
Merge pull request #76 from arijitde92/pdf_rtd_doc
Browse files Browse the repository at this point in the history
Added PDF and ePub download option for RTD documentation as requested in aboutcode-org/aboutcode#127
  • Loading branch information
AyanSinhaMahapatra authored Jun 1, 2023
2 parents 8d205ef + e3aaf63 commit 5072e43
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
# Required
version: 2

# Build PDF & ePub
formats:
- epub
- pdf

# Where the Sphinx conf.py file is located
sphinx:
configuration: docs/source/conf.py
Expand Down
6 changes: 6 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,9 @@
.. role:: img-title-para
"""

# -- Options for LaTeX output -------------------------------------------------

latex_elements = {
'classoptions': ',openany,oneside'
}
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ testing =
isort

docs =
Sphinx == 6.2.1
Sphinx == 5.1.0
sphinx-rtd-theme >= 0.5.0
doc8 >= 0.8.1

0 comments on commit 5072e43

Please sign in to comment.