1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-12 17:26:19 +00:00

Bump version of material-mkdocs

Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
David Young
2020-04-20 13:27:02 +12:00
parent 1846be284d
commit 395046c3db
10 changed files with 121 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
FROM squidfunk/mkdocs-material
RUN pip install \
mkdocs-autolinks-plugin \
mkdocs-htmlproofer-plugin
mkdocs-htmlproofer-plugin \
mkdocs-blog-plugin

View File

@@ -0,0 +1,27 @@
document.addEventListener("DOMContentLoaded", function() {
load_navpane();
});
function load_navpane() {
var width = window.innerWidth;
if (width <= 1200) {
return;
}
var nav = document.getElementsByClassName("md-nav");
for(var i = 0; i < nav.length; i++) {
if (typeof nav.item(i).style === "undefined") {
continue;
}
if (nav.item(i).getAttribute("data-md-level") && nav.item(i).getAttribute("data-md-component")) {
nav.item(i).style.display = 'block';
nav.item(i).style.overflow = 'visible';
}
}
var nav = document.getElementsByClassName("md-nav__toggle");
for(var i = 0; i < nav.length; i++) {
nav.item(i).checked = true;
}
}

View File

@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<path style="fill:#211915;" d="M512,512H0V256c0-68.38,26.628-132.668,74.981-181.019S187.62,0,256,0s132.668,26.628,181.019,74.981
S512,187.62,512,256V512z"/>
<path style="fill:#FFFFFF;" d="M73.143,512V221.117c0-58.906,47.924-106.83,106.83-106.83c28.917,0,56.142,11.606,76.027,31.782
c19.884-20.176,47.11-31.782,76.027-31.782c58.906,0,106.83,47.924,106.83,106.83V512H73.143z"/>
<path style="fill:#FFAB00;" d="M256,431.699l-74.713-118.642L256,245.866l74.713,67.19L256,431.699z"/>
<path style="fill:#BDBDBF;" d="M438.857,221.117c0-58.906-47.924-106.83-106.83-106.83c-28.573,0-55.489,11.337-75.309,31.071
V246.51l73.996,66.545l-73.996,117.503V512h182.139V221.117z"/>
<polygon style="fill:#BD7F00;" points="330.713,313.056 256.718,246.511 256.718,430.559 "/>
<g>
<path style="fill:#333333;" d="M187.76,214.201c0-11.513-9.229-20.835-20.569-20.835c-11.355,0-20.582,9.324-20.582,20.835
c0,11.511,9.227,20.843,20.582,20.843C178.53,235.044,187.76,225.712,187.76,214.201z"/>
<path style="fill:#333333;" d="M365.392,214.201c0-11.513-9.229-20.835-20.569-20.835c-11.355,0-20.582,9.324-20.582,20.835
c0,11.511,9.227,20.843,20.582,20.843C356.163,235.044,365.392,225.712,365.392,214.201z"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@@ -1,5 +1,3 @@
hero: Heroic Hero
# BookStack
BookStack is a simple, self-hosted, easy-to-use platform for organising and storing information.

View File

@@ -0,0 +1 @@
Hello

View File

@@ -0,0 +1 @@
Hello

View File

View File

@@ -1,7 +1,9 @@
hero: "Excuse me... waiter, there's a bug in this recipe!"
# Support
> "Excuse me... waiter, there's a bug in this recipe!"
How do you get support for these receipes? There are several options...
## Discord: Where the cool kids are
All the cool kids are hanging out in the [Discord server](http://chat.funkypenguin.co.nz).

View File

@@ -19,6 +19,7 @@ copyright: 'Copyright &copy; 2016 - 2020 David Young, Funky Penguin Limited'
# Plugins
plugins:
- blog
- search
- minify:
minify_html: true
@@ -26,16 +27,23 @@ plugins:
# - git-revision-date-localized:
# type: date
- autolinks
- htmlproofer
# - htmlproofer
#theme_dir: mkdocs-material
nav:
- Home:
- What is this: index.md
- About: whoami.md
- Sponsored Projects: sponsored-projects.md
- Support:
- Support: support.md
- Sponsored Projects: sponsored-projects.md
# - 'Join Us! 🤝':
# - Hello: recipes/general/start.md
# - iPad Pro Geeking: recipes/general/ipad-pro-geeking.md
# - Kid-safe WiFi: recipes/general/kid-safe-wifi.md
# Upcoming section
# - '#geeklife':
# - Hello: recipes/general/start.md
# - iPad Pro Geeking: recipes/general/ipad-pro-geeking.md
# - Kid-safe WiFi: recipes/general/kid-safe-wifi.md
- Docker Swarm:
- Preparation:
- Design: ha-docker-swarm/design.md
@@ -166,36 +174,42 @@ nav:
# - PrivateBin: recipes/kubernetes/privatebin.md
- CHANGELOG:
- CHANGELOG: CHANGELOG.md
- Support:
- Support: support.md
theme:
name: 'material'
custom_dir: 'overrides'
disqus: 'geeks-cookbook'
logo: 'images/site-logo.png'
favicon: 'images/favicon.ico'
feature:
tabs: true
logo: 'images/site-logo.svg'
favicon: 'images/site-logo.svg'
features:
- tabs
- instant
icon:
repo: 'fontawesome/brands/github'
palette:
primary: 'black'
accent: 'indigo'
font:
text: 'Ubuntu'
code: 'Ubuntu Mono'
extra:
social:
- type: 'github'
- icon: 'fontawesome/brands/github'
link: 'https://github.com/funkypenguin'
- type: 'twitter'
- icon: 'fontawesome/brands/twitter'
link: 'https://twitter.com/funkypenguin'
- type: 'stack-overflow'
- icon: 'fontawesome/brands/stack-overflow'
link: 'https://stackoverflow.com/cv/funkypenguin'
- type: 'rss'
- icon: 'material/rss'
link: 'https://www.funkypenguin.co.nz/'
- type: 'linkedin'
- icon: 'fontawesome/brands/linkedin'
link: 'https://www.linkedin.com/in/funkypenguin'
- type: 'envelope'
link: 'mailto:davidy@funkypenguin.co.nz?Subject=Hello%2C%20from%20a%20geek-cookbook%20reader%20%3B%29'
- type: 'book'
link: 'https://leanpub.com/geeks-cookbook'
- icon: 'material/library'
link: 'https://leanpub.com/geeks-cookbook'
# Google Analytics
google_analytics:
@@ -222,7 +236,9 @@ markdown_extensions:
- pymdownx.caret
- pymdownx.critic
- pymdownx.details
- pymdownx.emoji
- pymdownx.emoji:
emoji_index: !!python/name:pymdownx.emoji.twemoji
emoji_generator: !!python/name:pymdownx.emoji.to_svg
- pymdownx.inlinehilite
- pymdownx.magiclink:
repo_url_shorthand: true
@@ -234,4 +250,5 @@ markdown_extensions:
- pymdownx.tasklist:
custom_checkbox: true
- pymdownx.tilde
- pymdownx.tabbed
- meta

View File

@@ -1,3 +1,4 @@
#!/bin/bash
docker pull squidfunk/mkdocs-material:5.1.1
docker build . -t funkypenguin/mkdocs-material
docker run --rm --name mkdocs-material -it -p 8000:8000 -v ${PWD}:/docs funkypenguin/mkdocs-material
docker run --rm --name mkdocs-material -it -p 8123:8000 -v ${PWD}:/docs funkypenguin/mkdocs-material