55# Required
66version : 2
77
8+ # Optional but recommended, declare the Python requirements required
9+ # to build your documentation
10+ # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
811python :
912 install :
1013 - requirements : requirements.txt
@@ -18,17 +21,26 @@ build:
1821 python : " 3.12"
1922 jobs :
2023 post_checkout :
24+ # Fetch the complete git history; ignore errors if already fully fetched
2125 - git fetch --unshallow || true
26+ # Set fetch configuration to include all branches; ignore errors if already set
2227 - git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*' || true
28+ # Fetch all branches and tags; ignore network errors
2329 - git fetch --all --tags || true
30+ # Clean build artifacts; ignore if already clean
2431 - make clean || true
32+ # Purge caches and temporary files; continue even if purge fails
2533 - make purge || true
2634 post_install :
35+ # Clean build artifacts; ignore if already clean
2736 - make clean || true
2837 pre_build :
38+ # Build the project module that is to be documented ; continue even if build fails
2939 - make build || true
30- - make -j1 build-docs || true
40+ # Build docs and verify output exists
41+ - make -j1 build-docs && test -d docs/www/_build/html
3142 post_build :
43+ # Move built documentation into place ; ignore if fails
3244 - cp -vfRp docs/www/_build/html/ "$READTHEDOCS_OUTPUT" || true
3345
3446# Build documentation in the "docs/" directory with Sphinx
@@ -38,13 +50,14 @@ sphinx:
3850 fail_on_warning : false
3951
4052# Optionally build your docs in additional formats such as PDF and ePub
53+ # To enable, uncomment the following lines and ensure dependencies are met
4154# formats:
42- # - pdf
43- # - epub
44-
45- # Optional but recommended, declare the Python requirements required
46- # to build your documentation
47- # See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
48- # python:
49- # install:
50- # - requirements: docs/requirements.txt
55+ # - pdf
56+ # - epub
57+ #
58+ # Note:
59+ # - Enabling PDF output requires LaTeX installed in the build environment
60+ # - PDF output requires texlive-latex-recommended and texlive-fonts-recommended packages
61+ # - PDF builds may significantly increase build time and output size
62+ # - Ensure all documentation content is compatible with these formats
63+ # - Assess user demand for offline documentation before enabling
0 commit comments