Skip to content

Commit a0f63a1

Browse files
Update .readthedocs.yaml
1 parent 6d20ad1 commit a0f63a1

File tree

1 file changed

+31
-12
lines changed

1 file changed

+31
-12
lines changed

.readthedocs.yaml

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,46 @@
1-
# Read the Docs configuration file
1+
# .readthedocs.yaml
2+
# Read the Docs configuration file for dj-payfast
23
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
34

4-
# Required
55
version: 2
66

7-
# Set the OS, Python version, and other tools you might need
7+
# Set the OS, Python version and other tools you might need
88
build:
9-
os: ubuntu-24.04
9+
os: ubuntu-22.04
1010
tools:
11-
python: "3.13"
11+
python: "3.11"
12+
jobs:
13+
post_create_environment:
14+
# Install poetry or other dependencies if needed
15+
- pip install poetry || echo "Poetry installation optional"
16+
post_install:
17+
# Install any additional requirements
18+
- echo "Build environment ready"
1219

1320
# Build documentation in the "docs/" directory with Sphinx
1421
sphinx:
15-
configuration: docs/conf.py
22+
configuration: docs/conf.py
23+
fail_on_warning: false
1624

25+
# Optionally build your docs in additional formats such as PDF and ePub
1726
formats:
1827
- pdf
1928
- epub
2029

21-
# Optionally, but recommended,
22-
# declare the Python requirements required to build your documentation
23-
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
30+
# Python configuration
2431
python:
25-
install:
26-
- requirements: docs/requirements.txt
27-
32+
install:
33+
- requirements: docs/requirements.txt
34+
- requirements: requirements.txt
35+
- method: pip
36+
path: .
37+
extra_requirements:
38+
- docs
39+
40+
# Additional settings
41+
search:
42+
ranking:
43+
'docs/introduction.rst': 2
44+
'docs/index.rst': 3
45+
ignore:
46+
- '404.html'

0 commit comments

Comments
 (0)