From 4137534312c8bb7d47bf3b05f386de516ddc38a9 Mon Sep 17 00:00:00 2001 From: XhmikosR Date: Wed, 4 Dec 2019 11:21:20 +0200 Subject: [PATCH] Tweak mkdocs config and CSS * Add a navbar logo * Reduce the fonts we load by specifying the one we want to use in the config file * No more importing CSS thus faster loading * Remove a few default properties from extra.css * Bump copyright year * Remove unneeded / add needed trailing slashes in config URLs * Minor CSS tweaks --- docs/extra.css | 22 ++++++++++++++-------- docs/images/logo.svg | 1 + mkdocs.yml | 23 ++++++++++++++--------- 3 files changed, 29 insertions(+), 17 deletions(-) create mode 100644 docs/images/logo.svg diff --git a/docs/extra.css b/docs/extra.css index 8b0999f..9d4bb5d 100644 --- a/docs/extra.css +++ b/docs/extra.css @@ -1,4 +1,7 @@ -@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i'); +body, +input { + color: #000; +} .md-nav { font-size: 14px; line-height: 1.4; @@ -7,12 +10,15 @@ font-size: 14px; line-height: 1.5; } -body, input { - font-family: "Source Sans Pro", "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif; - color: black; -} -.md-typeset code, .md-typeset pre { - display: inline-block; +.md-typeset code, +.md-typeset pre { white-space: pre-wrap; - color: rgb(83, 43, 168); + color: #532ba8; +} + +@media only screen and (max-width: 76.1875em) { + .md-logo img { + width: auto; + height: 48px; + } } diff --git a/docs/images/logo.svg b/docs/images/logo.svg new file mode 100644 index 0000000..3955f31 --- /dev/null +++ b/docs/images/logo.svg @@ -0,0 +1 @@ +NewVortex \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 27de823..7e6fde2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,13 +1,17 @@ site_name: "Pi-hole documentation" site_url: https://docs.pi-hole.net/ -repo_url: "https://github.com/pi-hole/pi-hole/" +repo_url: "https://github.com/pi-hole/pi-hole" edit_uri: "" -copyright: 'Copyright © 2018 Pi-hole LLC' +copyright: 'Copyright © 2019 Pi-hole LLC' remote_branch: gh-pages theme: name: 'material' favicon: 'images/favicon.png' + logo: 'images/logo.svg' language: 'en' + font: + text: 'Source Sans Pro' + code: 'Roboto Mono' markdown_extensions: # Code highlighting in ``` ``` blocks @@ -99,17 +103,18 @@ nav: - 'Optional: Dynamic DNS': guides/vpn/dynDNS.md - 'Troubleshooting': guides/vpn/troubleshooting.md - 'TOR & Pi-hole': - - 'Overview': guides/tor/overview.md - - 'Basic Setup': guides/tor/setup.md - - 'Using TOR': guides/tor/using-tor.md - - 'Performance and other issues': guides/tor/performance-issues.md - - 'Using DNSSEC': guides/tor/dnssec.md + - 'Overview': guides/tor/overview.md + - 'Basic Setup': guides/tor/setup.md + - 'Using TOR': guides/tor/using-tor.md + - 'Performance and other issues': guides/tor/performance-issues.md + - 'Using DNSSEC': guides/tor/dnssec.md - 'Community Projects': main/projects.md extra: social: - type: globe - link: https://pi-hole.net + link: https://pi-hole.net/ - type: github-alt link: https://github.com/pi-hole -extra_css: [extra.css] +extra_css: + - extra.css