Commit 8366f50
Use .rst#anchor form for nbsphinx local-file resolution
CI sphinx-build -W failed on the prior practitioner_decision_tree fix:
WARNING: File not found: 'practitioner_decision_tree.html#few-test-markets'
[nbsphinx.localfile]
nbsphinx's localfile resolver checks the target as a source-side file.
.html does not exist as a source artifact (only after build), so the
warning fires; -W escalates to error.
The .rst#anchor form satisfies both constraints: nbsphinx finds the
source .rst, and Sphinx/nbsphinx renders the link to .html#anchor in
the built HTML (verified locally via make -C docs clean && make html
SPHINXOPTS="-W"; produced practitioner_decision_tree.html#few-test-markets
with the matching id="few-test-markets" target in the rendered page).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 35a4337 commit 8366f50
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments