doc: Issue warning for dangling code-sample references
Sphinx will now issue a warning when a code-sample role points to a sample that does not exist. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
944f0d4875
commit
c82d023248
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ class ZephyrDomain(Domain):
|
|||
label = "Zephyr Project"
|
||||
|
||||
roles = {
|
||||
"code-sample": XRefRole(innernodeclass=nodes.inline),
|
||||
"code-sample": XRefRole(innernodeclass=nodes.inline, warn_dangling=True),
|
||||
}
|
||||
|
||||
directives = {"code-sample": CodeSampleDirective}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue