Commit 807aba2
committed
fix ReadTheDocs: replace notebook symlink with copy and pin Sphinx <9
The notebook images were broken because docs/source/notebooks is a
symlink to ../../notebooks. nbsphinx extracts images to _build/doctrees/
and references them with relative paths, but the symlink causes those
paths to resolve from the wrong directory (see nbsphinx issue #49).
Fix by adding a pre_build job that replaces the symlink with a real copy.
Also pin sphinx>=8.0,<9 since nbsphinx 0.9.8 only re-enabled 8.2+
support and Sphinx 9 is untested.1 parent 10f7417 commit 807aba2
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
0 commit comments