diff --git a/docs/overrides/main.html b/docs/overrides/main.html new file mode 100644 index 0000000..ebf74d2 --- /dev/null +++ b/docs/overrides/main.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block content %} + +{% if page.url_to_pdf %} + + {% include ".icons/material/file-pdf-box.svg" %} + +{% endif %} + +{{ super() }} +{% endblock content %} \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index e5206f1..3542057 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -12,6 +12,7 @@ theme: - content.feedback - navigation.footer - navigation.indexes + custom_dir: docs/overrides palette: primary: indigo @@ -48,6 +49,7 @@ nav: - Test a Project: usage/test-project.md plugins: - search + - print-site # To generate pdfs add pdf-export: plugin with combined: true option # To create a combined web page of the whole website and generate a pdf from it from the browser (print - save as pdf), use the "print-site" plugin at the bottom of the plugin lists: https://github.com/timvink/mkdocs-print-site-plugin