Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/overrides/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{% extends "base.html" %}

{% block content %}

{% if page.url_to_pdf %}
<a href="{{ page.url_to_pdf }}" title="Site PDF" class="md-content__button md-icon">
{% include ".icons/material/file-pdf-box.svg" %}
</a>
{% endif %}

{{ super() }}
{% endblock content %}
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ theme:
- content.feedback
- navigation.footer
- navigation.indexes
custom_dir: docs/overrides

palette:
primary: indigo
Expand Down Expand Up @@ -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

Expand Down
Loading