Commit 2728726
FIX: Backport minimal RTD config fixes so v0.12.1 builds on RTD
The v0.12.1 release tag predates every RTD fix that landed on main
(#1673, #1676, #1682, #1740, #1745, #1793, #1825), so RTD could not
build v0.12.1 from the tag. This commit backports only the surgical
changes needed to make the v0.12.1 content build under the current
RTD environment. After this lands, RTD's v0.12.1 version is
reconfigured to track this branch rather than the immutable tag.
Same pattern as the v0.13.0 backport on releases/v0.13.0.
1. .readthedocs.yaml -- the tag's config had three issues that
combined to make RTD fail before producing any output:
* build.jobs.build.commands is not a valid key (RTD only accepts
html/pdf/epub/htmlzip under build.jobs.build). This was a hard
config-validation error that aborted the build immediately.
* When build.jobs is defined, RTD ignores the legacy python.install
block, so dependencies were never installed and the pre_build
step would have failed on 'ModuleNotFoundError: No module named
griffe'. Fixed by adding an explicit build.jobs.install step
running pip install .[dev] -- v0.12.1 uses
[project.optional-dependencies], not PEP 735 [dependency-groups]
-- and dropping the dead python.install block.
* jupyter-book build --all builds frontmatter exports only (PDF
per doc/myst.yml), not the static HTML site. --html is required
to produce _build/html/index.html, which is what RTD serves.
Also fixed the cp source to point at _build/html/ instead of
_build/site/.
2. doc/myst.yml -- removes the api/pyrit_setup_initializers.md TOC
entry. gen_api_md.py does not emit this page because pyrit.setup
has its own API members and the script only expands pure-aggregate
modules. Unlike at v0.13.0, api/pyrit_ui.md IS generated for v0.12.1
(the pyrit/ui/ subpackage still existed in this tree) so that TOC
entry is kept.
3. doc/getting_started/troubleshooting/{deploy_hf_model_aml,download_and_register_hf_model_aml,score_aml_endpoint}.ipynb
-- correct the AML image relative paths from ./../../assets/ to
./../../../assets/. The paired .py source-of-truth files already
use the correct 3-up path, and these notebooks have been
out-of-sync with their source since before v0.12.0. Same fix that
landed on main in PR #1740.
Verified locally: pip install .[dev] + pre_build + build produce
doc/_build/html/index.html (196 KB) and 1871 site files, with all
'Cannot find image' warnings gone.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 3873c77 commit 2728726
5 files changed
Lines changed: 21 additions & 20 deletions
File tree
- doc
- getting_started/troubleshooting
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
18 | 24 | | |
19 | | - | |
20 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
21 | 31 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 32 | + | |
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
205 | | - | |
206 | 204 | | |
207 | 205 | | |
208 | 206 | | |
| |||
0 commit comments