Build a PDF with rinohtype
Use http://www.mos6581.org/rinohtype/master/index.html to build a PDF from the Sphinx project. In the flyout menu, you will find a link to download the PDF.
Read the Docs configuration file used to build this docs:
1version: 2
2
3build:
4 os: ubuntu-22.04
5 tools:
6 python: "3"
7 apt_packages:
8 - tree
9 jobs:
10 post_build:
11 - sphinx-build -b rinoh docs/ _build/rinohtype/
12 - mkdir _readthedocs/pdf
13 - mv _build/rinohtype/test-builds.pdf _readthedocs/pdf
14
15sphinx:
16 configuration: docs/conf.py
17
18python:
19 install:
20 - requirements: requirements.txt
Sphinx configuration file used to build this docs (see full file),
1# Default settings
2project = 'Test Builds'
3extensions = [
4 'sphinx_autorun',
5]
6
7# Include all your settings here
8html_theme = 'sphinx_rtd_theme'
9
10rinoh_documents = [
11 dict(
12 doc='index', # top-level file (index.rst)
13 target='test-builds', # output file (test-builds.pdf)
14 ),
15]
16
17
18
19
>>> # Build at
>>> import datetime
>>> datetime.datetime.utcnow() # UTC
datetime.datetime(2023, 2, 2, 13, 2, 54, 671046)