From 253fb9be91661eee51e9d6c410a232a471bd8d85 Mon Sep 17 00:00:00 2001 From: gijsio <67470426+gijsio@users.noreply.github.com> Date: Thu, 20 Aug 2020 10:54:37 +0200 Subject: [PATCH] [experimental] development --> docs Allow for the incorporation of development branch functions into the documentation using {{< development style="dev" >}} {{< /development >}} --- layouts/_default/baseof.html | 16 +++++++++++++--- layouts/shortcodes/development.html | 8 ++++++++ layouts/shortcodes/hint.html | 3 ++- themes/doc-theme/static/css/doc-theme.css | 15 +++++++++++++++ 4 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 layouts/shortcodes/development.html diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ebe3b45..4157364 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -36,6 +36,7 @@ - + {{- partial "alexia.html" . -}} {{- partial "google_analitycs.html" . -}} + + diff --git a/layouts/shortcodes/development.html b/layouts/shortcodes/development.html new file mode 100644 index 0000000..bcbdce1 --- /dev/null +++ b/layouts/shortcodes/development.html @@ -0,0 +1,8 @@ +
+ + + {{ .Inner }} + + + +
\ No newline at end of file diff --git a/layouts/shortcodes/hint.html b/layouts/shortcodes/hint.html index 28cb6f7..0029d56 100644 --- a/layouts/shortcodes/hint.html +++ b/layouts/shortcodes/hint.html @@ -1,5 +1,6 @@ - + {{ .Inner }} + diff --git a/themes/doc-theme/static/css/doc-theme.css b/themes/doc-theme/static/css/doc-theme.css index 427928c..9fcc193 100644 --- a/themes/doc-theme/static/css/doc-theme.css +++ b/themes/doc-theme/static/css/doc-theme.css @@ -220,6 +220,21 @@ li.hot { padding:0!important; } +/* changes 19-08-2020 +Added shortcode for development markings + +*/ +#development { + display:none; + +} +.dev { + background-color: #EF9A9A !important; +} + +.v-card__text > h3, h4{ + margin-top:0px; +} .danger-alert { background-color: #EF9A9A !important; margin-top: 24px;