Set the anchors

This commit is contained in:
Victor Zverovich 2024-06-15 08:55:22 -07:00
parent 2bf1b3004e
commit 709169a4d8

View File

@ -3,10 +3,11 @@
import os
from pathlib import Path
import xml.etree.ElementTree as et
from mkdocstrings.handlers.base import BaseHandler
from typing import Any, List, Mapping, Optional
from subprocess import CalledProcessError, PIPE, Popen, STDOUT
import xml.etree.ElementTree as et
from mkdocstrings.handlers.base import BaseHandler
class Definition:
'''A definition extracted by Doxygen.'''
@ -288,6 +289,8 @@ class CxxHandler(BaseHandler):
return self.collect_compound(identifier, cls)
def render(self, d: Definition, config: dict) -> str:
if d.id is not None:
self.do_heading('', 0, id=d.id)
text = '<div class="docblock">\n'
text += render_decl(d)
text += '<div class="docblock-desc">\n'