link = path + child.find('filename').text + '.html'
symbol_mapping[child.find('name').text] = (child.find('title').text, link)
- # Page sections
- for section in child.findall('docanchor'):
- symbol_mapping[section.text] = (section.attrib.get('title', ''), link + '#' + section.text)
-
# Linking to files
if child.attrib['kind'] == 'file':
link = path + child.find('filename').text + ".html"
for value in member.findall('enumvalue'):
symbol_mapping[enumeration + '::' + value.text] = (None, link + '#' + value.attrib['anchor'])
+ # Sections
+ for section in child.findall('docanchor'):
+ symbol_mapping[section.text] = (section.attrib.get('title', ''), link + '#' + section.text)
+
def dox(name, rawtext, text, lineno, inliner: Inliner, options={}, content=[]):
title, target = parse_link(text)
<li><a href="http://doc.magnum.graphics/corrade/testsuite.html">Custom link title</a></li>
<li><a href="http://doc.magnum.graphics/corrade/corrade-cmake.html">Page link with custom title</a></li>
<li><a href="http://doc.magnum.graphics/corrade/">Link to index page</a></li>
+<li><a href="http://doc.magnum.graphics/corrade/classCorrade_1_1TestSuite_1_1Tester.html#TestSuite-Tester-command-line">Link to class documentation section</a></li>
</ul>
<p>These should produce warnings:</p>
<ul>
- :dox:`Custom link title <testsuite>`
- :dox:`Page link with custom title <corrade-cmake>`
- :dox:`Link to index page <corrade>`
+- :dox:`Link to class documentation section <TestSuite-Tester-command-line>`
These should produce warnings: