doc: add support for linkcheck
This patch adds support for the `linkcheck` Sphinx builder, so that we can easily check for broken links in the documentation. It can be run like this: ninja linkcheck Or, using the Makefile shim: make linkcheck All Zephyr Github issues links are ignored, since we have lots of these URLs and they quickly hit GH rate limit. They have small chance to be incorrect, so we should be ok. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
f9ccac29cd
commit
41566e2502
3 changed files with 35 additions and 1 deletions
|
@ -201,6 +201,12 @@ latex_documents = [
|
|||
("index-tex", "zephyr.tex", "Zephyr Project Documentation", author, "manual"),
|
||||
]
|
||||
|
||||
# -- Options for linkcheck ------------------------------------------------
|
||||
|
||||
linkcheck_ignore = [
|
||||
r"https://github.com/zephyrproject-rtos/zephyr/issues/.*"
|
||||
]
|
||||
|
||||
# -- Options for zephyr.doxyrunner plugin ---------------------------------
|
||||
|
||||
doxyrunner_doxygen = os.environ.get("DOXYGEN_EXECUTABLE", "doxygen")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue