From 8e3b81208737511ed61d4c10622229e8ace4a1ee Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Tue, 27 Jul 2010 14:27:14 +0000 Subject: [PATCH] Update doxylink to ignore links to nodes it can't find. --- documentation/_extensions/sphinxcontrib/doxylink.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/documentation/_extensions/sphinxcontrib/doxylink.py b/documentation/_extensions/sphinxcontrib/doxylink.py index 0eedd15a..33685187 100644 --- a/documentation/_extensions/sphinxcontrib/doxylink.py +++ b/documentation/_extensions/sphinxcontrib/doxylink.py @@ -131,10 +131,8 @@ def create_role(app, tag_filename, rootdir): #By here, no match was found env = app.env env.warn(env.docname, 'Could not find match for `%s` in `%s` tag file' % (part, tag_filename), lineno) - - full_url="#" - #TODO find which command to use to just output it as plain text (no link) in this case - pnode = nodes.reference(title, title, internal=False, refuri=full_url) + + pnode = nodes.inline(rawsource=title, text=title) return [pnode], [] return find_doxygen_link