mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-29 03:32:42 +00:00
Set the anchors
This commit is contained in:
parent
2bf1b3004e
commit
709169a4d8
@ -3,10 +3,11 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import xml.etree.ElementTree as et
|
|
||||||
from mkdocstrings.handlers.base import BaseHandler
|
|
||||||
from typing import Any, List, Mapping, Optional
|
from typing import Any, List, Mapping, Optional
|
||||||
from subprocess import CalledProcessError, PIPE, Popen, STDOUT
|
from subprocess import CalledProcessError, PIPE, Popen, STDOUT
|
||||||
|
import xml.etree.ElementTree as et
|
||||||
|
|
||||||
|
from mkdocstrings.handlers.base import BaseHandler
|
||||||
|
|
||||||
class Definition:
|
class Definition:
|
||||||
'''A definition extracted by Doxygen.'''
|
'''A definition extracted by Doxygen.'''
|
||||||
@ -288,6 +289,8 @@ class CxxHandler(BaseHandler):
|
|||||||
return self.collect_compound(identifier, cls)
|
return self.collect_compound(identifier, cls)
|
||||||
|
|
||||||
def render(self, d: Definition, config: dict) -> str:
|
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 = '<div class="docblock">\n'
|
||||||
text += render_decl(d)
|
text += render_decl(d)
|
||||||
text += '<div class="docblock-desc">\n'
|
text += '<div class="docblock-desc">\n'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user