When building html documentation, how do you force sphinx to report, or create an error, on links that don't exist?
Specifically, I have properties and methods within my Python project that have been removed or renamed, and it is hard to find all the dead links with the sphinx generated html output.
I feel like I'm staring at the answer here: http://sphinx-doc.org/glossary.html, as descriped in the opening paragraph.
I'm obviously not understanding something.
I think CheckExternalLinksBuilder
is what you're looking for.
It's basically used by calling 'sphinx-build' with -b linkcheck
option. Please see sphinx-build
for more info. Also, take a look at the list of sphinx-extensions here and here.
来源:https://stackoverflow.com/questions/14492743/have-sphinx-report-broken-links