You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/readthedocs/README.md
+7-12Lines changed: 7 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ pixi run docs-serve-ko
43
43
44
44
### How It Works
45
45
46
-
The Python API documentation is generated using Sphinx autodoc, which requires the `dartpy` module to be importable.
46
+
The Python API documentation is generated using Sphinx autodoc, which requires the `dartpy` module (nanobind extension) to be importable.
47
47
48
48
**Local builds:**
49
49
@@ -53,9 +53,8 @@ The Python API documentation is generated using Sphinx autodoc, which requires t
53
53
54
54
**Read the Docs builds:**
55
55
56
-
- dartpy is a C++ extension built with pybind11 and cannot be compiled on Read the Docs
57
-
- API documentation pages will be empty until we implement pre-built wheels
58
-
- The documentation structure and navigation will still work correctly
56
+
- Read the Docs cannot compile the C++ extension, so `conf.py` falls back to generated stubs under `python/stubs/dartpy`.
57
+
- If compatible wheels are available for RTD’s image, the requirements file pins one so autodoc can use the real module; otherwise the stubs keep the API pages rendering.
59
58
60
59
### Generating Stub Files
61
60
@@ -91,14 +90,10 @@ The `docs-build` task:
91
90
92
91
### Read the Docs ✅
93
92
94
-
Read the Docs now installs `dartpy` prior to running Sphinx so the Python API pages
95
-
render there as well. RTD's Ubuntu 22.04 images are still on glibc 2.35, so the
96
-
requirements file pins `dartpy==6.16.0`, the last release whose wheels remain compatible
97
-
with glibc 2.27. That wheel set only targets CPython 3.12+ (cp312–cp314), so `.readthedocs.yml`
98
-
now pins the RTD runtime to Python 3.12. Local builds can continue using the
99
-
`pip install --pre dartpy` flow for the bleeding-edge bindings. Once RTD upgrades
100
-
(or we ship compatible wheels), update `docs/readthedocs/requirements.txt` and
101
-
`.readthedocs.yml` to match and remove these temporary pins.
93
+
Read the Docs currently relies on prebuilt `dartpy` wheels when they match the RTD
94
+
image; otherwise it uses the shipped stubs. The requirements pin may change as RTD
95
+
images and wheel compatibility evolve—adjust `docs/readthedocs/requirements.txt` and
96
+
`.readthedocs.yml` when newer wheels are usable so autodoc can introspect the live module.
0 commit comments