have sphinx report broken links

前端 未结 2 1455
悲哀的现实
悲哀的现实 2021-01-04 07:09

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 with

2条回答
  •  -上瘾入骨i
    2021-01-04 07:36

    Set the nitpicky configuration variable to True (you can also use the -n option when running sphinx-build).

    In nitpicky mode, a cross-reference to a function (such as :func:`myfunc`), class, or other object that cannot be found will generate a warning message.

提交回复
热议问题