Commit ec325ea
committed
COMP: Remove broken duplicate-declaration sed hack from doc CI
The "Remove Duplicate Declaration Warnings" step deleted line 6559 of
Sphinx's domains/cpp.py, but in the pinned sphinx==7.2.6 that line is an
unrelated template-parsing heuristic, not the duplicate-declaration
warning (emitted elsewhere). The step therefore mutated an unrelated
code path while suppressing nothing, and it relied on distutils, which
is removed in Python 3.12.
Drop the step and instead declare the intent in Sphinx configuration via
suppress_warnings = ['duplicate_declaration.cpp']. The same ITK class is
deliberately documented by multiple examples, so the duplicate is
expected. The key is ignored by sphinx==7.2.6 and becomes effective once
Sphinx is upgraded, after which the CTest warning exception can also be
dropped.1 parent 23f641f commit ec325ea
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | 322 | | |
328 | 323 | | |
329 | 324 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
48 | 53 | | |
49 | 54 | | |
50 | 55 | | |
| |||
0 commit comments