diff --git a/docs/config.yaml b/docs/config.yaml index bc5427e..d4db747 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -2,20 +2,18 @@ baseURL: https://corenetworks.geekdocs.de/ title: corenetworks theme: hugo-geekdoc -pygmentsUseClasses: true -pygmentsCodeFences: true -# Geekdoc configuration disablePathToLower: true enableGitInfo: true -# Needed for mermaid/katex shortcodes markup: + defaultMarkdownHandler: goldmark goldmark: renderer: unsafe: true tableOfContents: startLevel: 1 + endLevel: 9 params: geekdocMenuBundle: true @@ -29,3 +27,5 @@ params: geekdocLegalNotice: https://geeklabor.de/legal-notice/#impressum geekdocPrivacyPolicy: https://geeklabor.de/legal-notice/#datenschutzerkl%C3%A4rung + + geekdocAnchorLeft: true diff --git a/docs/templates/text.mako b/docs/templates/text.mako index 83537f3..d5cc318 100644 --- a/docs/templates/text.mako +++ b/docs/templates/text.mako @@ -66,8 +66,10 @@ returns = show_type_annotations and func.return_annotation() or '' if returns: returns = ' -> ' + returns + + params = [x.replace("{}", "{ }") for x in func.params(annotate=show_type_annotations)] %> -${h3("`method " + func.name + "(" + ", ".join(func.params(annotate=show_type_annotations)) + ")" + returns + "`")} +${h3("`method " + func.name + "(" + ", ".join(params) + ")" + returns + "`")} ${func.docstring | to_markdown}