diff options
author | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2019-07-06 13:28:42 -0300 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2019-07-08 14:35:47 -0600 |
commit | 454f96f2b738374da4b0a703b1e2e7aed82c4486 (patch) | |
tree | 4932225e4d947710afc27cbeb530abf58d4c15a8 /Documentation/fb | |
parent | 66f2a122c68d8f13e5db978b6b7571aaf0e53a19 (diff) | |
download | lwn-docs-5.3.tar.gz lwn-docs-5.3.zip |
docs: automarkup.py: ignore exceptions when seeking for xrefsdocs-5.3
When using the automarkup extension with:
make pdfdocs
without passing an specific book, the code will raise an exception:
File "/devel/v4l/docs/Documentation/sphinx/automarkup.py", line 86, in auto_markup
node.parent.replace(node, markup_funcs(name, app, node))
File "/devel/v4l/docs/Documentation/sphinx/automarkup.py", line 59, in markup_funcs
'function', target, pxref, lit_text)
File "/devel/v4l/docs/sphinx_2.0/lib/python3.7/site-packages/sphinx/domains/c.py", line 308, in resolve_xref
contnode, target)
File "/devel/v4l/docs/sphinx_2.0/lib/python3.7/site-packages/sphinx/util/nodes.py", line 450, in make_refnode
'#' + targetid)
File "/devel/v4l/docs/sphinx_2.0/lib/python3.7/site-packages/sphinx/builders/latex/__init__.py", line 159, in get_relative_uri
return self.get_target_uri(to, typ)
File "/devel/v4l/docs/sphinx_2.0/lib/python3.7/site-packages/sphinx/builders/latex/__init__.py", line 152, in get_target_uri
raise NoUri
sphinx.environment.NoUri
This happens because not all references will belong to a single
PDF/LaTeX document.
Better to just ignore those than breaking Sphinx build.
Fixes: d74b0d31ddde ("Docs: An initial automarkup extension for sphinx")
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
[jc: Narrowed the "except" and tweaked the comment]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Diffstat (limited to 'Documentation/fb')
0 files changed, 0 insertions, 0 deletions