forked from useblocks/sphinx-simplepdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.readthedocs.yaml
27 lines (25 loc) · 1.22 KB
/
.readthedocs.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
# Required
version: 2
# Set the version of Python and other tools you might need
build:
os: ubuntu-22.04
apt_packages:
- default-jre # This seems to be ignored
tools:
python: "3.9"
# We can only define the content of the final deployment, if we do the complete build on our own.apt_packages:
# So we need to handle package installation, build start and copying the right files for deployment.
commands:
- pip install .
- pip install -r demo/doc-requirements.txt
- sphinx-build -M simplepdf demo demo/_build # Use a different build-folder for a really clean build
- pip install -r docs/doc-requirements.txt
- sphinx-build -M simplepdf docs docs/_build2 # Use a different build-folder for a really clean build
- cp demo/_build/simplepdf/Sphinx-SimplePDF-DEMO.pdf docs/_static/Sphinx-SimplePDF-DEMO.pdf
- cp docs/_build2/simplepdf/Sphinx-SimplePDF.pdf docs/_static/Sphinx-SimplePDF.pdf
- sphinx-build -M html docs docs/_build # HTML latest, because it needs the built PDF files
- mkdir -p _readthedocs/html/
- cp -r docs/_build/html/* _readthedocs/html/