diff --git a/pdoc/templates/config.mako b/pdoc/templates/config.mako index 992ff2eb..dd4987c8 100644 --- a/pdoc/templates/config.mako +++ b/pdoc/templates/config.mako @@ -61,4 +61,9 @@ # Note: in Python docstrings, either all backslashes need to be escaped (\\) # or you need to use raw r-strings. latex_math = False + + # If 'static_content' is not empty, each Mardown document will be included + # by its key value. + # static_content = {'tutorial': 'docs/tutorial.md', 'gallery': 'docs/gallery.md'} + static_content = {} %> diff --git a/pdoc/templates/html.mako b/pdoc/templates/html.mako index f0517880..77bdfc84 100644 --- a/pdoc/templates/html.mako +++ b/pdoc/templates/html.mako @@ -301,6 +301,13 @@

Index

${extract_toc(module.docstring) if extract_module_toc_into_sidebar else ''} + % if len(static_content): + + % endif