Skip to content

Commit 0c134bf

Browse files
[DOCUMENTATION] Additional comments added (- WIP #209 -)
Changes in file .readthedocs.yaml: - improved documentation of read-the-docs build config slightly.
1 parent eadb99c commit 0c134bf

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.readthedocs.yaml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# Required
66
version: 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
811
python:
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
40+
# build the documentation ; avoid crashing even if docs fail
3041
- make -j1 build-docs || true
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,13 @@ 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
55+
# - pdf
56+
# - epub
57+
#
58+
# Note:
59+
# - Enabling PDF output requires LaTeX installed in the build environment
60+
# - Ensure all documentation content is compatible with these formats
61+
# - Assess user demand for offline documentation before enabling
4462

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

0 commit comments

Comments
 (0)