From dc213188c71e7893ee025a6b8d7662aa37f27b6e Mon Sep 17 00:00:00 2001 From: Fedor Isakov Date: Thu, 23 Aug 2018 14:59:37 +0200 Subject: [PATCH] Print layout for the docs site --- docs/_assets/mdl.css | 3 +++ docs/_data/nav.yml | 7 ++++++- docs/_includes/head.html | 2 +- docs/_layouts/print.html | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 docs/_layouts/print.html diff --git a/docs/_assets/mdl.css b/docs/_assets/mdl.css index 72e374be..3923fc73 100644 --- a/docs/_assets/mdl.css +++ b/docs/_assets/mdl.css @@ -57,6 +57,9 @@ background-color: #424242 !important; } +@media print { + .content .printed-page { page-break-after: always; } +} .content{ max-width: 800px; diff --git a/docs/_data/nav.yml b/docs/_data/nav.yml index b4e559f8..4d7766b7 100644 --- a/docs/_data/nav.yml +++ b/docs/_data/nav.yml @@ -1,8 +1,13 @@ - title: "Examples" url: false - weight: 800 + weight: 500 id: examples +- title: "All on Single Page" + url: "content/allpages.html" + weight: 890 + tab: true + - title: "Links" url: false weight: 900 diff --git a/docs/_includes/head.html b/docs/_includes/head.html index 1b1637a0..3ea19db2 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -21,7 +21,7 @@ -{{ page.title }} | {{ site.title }} +{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}