docgen: implement doc link resolution in current module (#18642)

This commit is contained in:
Andrey Makarov 2021-10-28 20:20:52 +03:00 • committed by GitHub
commit 7ba2659f73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 1833 additions and 143 deletions

View file

@ -19,7 +19,8 @@ doc.section.toc = ""
doc.item = """
\vspace{1em}
\phantomsection\addcontentsline{toc}{subsection}{$uniqueName}
\phantomsection\addcontentsline{toc}{subsubsection}{$uniqueName}
\label{$itemSymOrID}\hypertarget{$itemSymOrID}{}
\begin{rstdocitem}
$header
@ -30,6 +31,13 @@ $desc
\end{addmargin}
"""
doc.item2 = """
\phantomsection\addcontentsline{toc}{subsection}{$header_plain}
\label{$overloadGroupName}\hypertarget{$overloadGroupName}{}
$content
"""
doc.item.toc = ""
doc.toc = r"\tableofcontents \newpage"