Skip to content

Commit

Permalink
add pdf export
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobFerdinand committed Feb 12, 2024
1 parent e081613 commit 2f38749
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"features": {
"ghcr.io/devcontainers-contrib/features/mkdocs:2": {}
},
"postCreateCommand": "pip3 install mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin"
"postCreateCommand": "pip3 install mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin mkdocs-pdf-export-plugin"
}
17 changes: 17 additions & 0 deletions docs/stylesheets/pdf.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@page {
size: a4 portrait;
/* margin: 25mm 10mm 25mm 10mm;
counter-increment: page;
font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
white-space: pre;
color: grey;
@top-left {
content: '© 2018 My Company';
}
@top-center {
content: string(chapter);
}
@top-right {
content: 'Page ' counter(page);
} */
}
5 changes: 5 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,19 @@ theme:

extra_css:
- stylesheets/extra.css
- stylesheets/pdf.css

plugins:
- search
- awesome-pages
- pdf-export

markdown_extensions:
- admonition
- attr_list
- pymdownx.details
- pymdownx.superfences
- toc:
permalink: true

repo_url: https://github.com/rzlsoftware/test-rzl-hilfe

0 comments on commit 2f38749

Please sign in to comment.