Commit 07aa1b4
committed
fix(theme): use builder.add_js_file for Sphinx 7+ compatibility
- Bump to 1.2.3.
- Register translations.js via builder.add_js_file() instead of mutating
builder.script_files. In Sphinx 7+, script_files holds JavaScript
objects rather than strings, so the old 'not in' duplicate-guard never
matched and the file was re-appended on every build.
Signed-off-by: Gabriel Harris-Rouquette <gabizou@me.com>1 parent ed26feb commit 07aa1b4
3 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
| 53 | + | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
0 commit comments