1
0
mirror of https://github.com/funkypenguin/geek-cookbook/ synced 2025-12-13 17:56:26 +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 FROM squidfunk/mkdocs-material
RUN pip install \ RUN pip install \
mkdocs-autolinks-plugin \ 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
BookStack is a simple, self-hosted, easy-to-use platform for organising and storing information. 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 # 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 ## Discord: Where the cool kids are
All the cool kids are hanging out in the [Discord server](http://chat.funkypenguin.co.nz). 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
plugins: plugins:
- blog
- search - search
- minify: - minify:
minify_html: true minify_html: true
@@ -26,16 +27,23 @@ plugins:
# - git-revision-date-localized: # - git-revision-date-localized:
# type: date # type: date
- autolinks - autolinks
- htmlproofer # - htmlproofer
#theme_dir: mkdocs-material #theme_dir: mkdocs-material
nav: nav:
- Home: - Home:
- What is this: index.md - What is this: index.md
- About: whoami.md - About: whoami.md
- Sponsored Projects: sponsored-projects.md - Sponsored Projects: sponsored-projects.md
- Support: # - 'Join Us! 🤝':
- Support: support.md # - 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: - Docker Swarm:
- Preparation: - Preparation:
- Design: ha-docker-swarm/design.md - Design: ha-docker-swarm/design.md
@@ -166,36 +174,42 @@ nav:
# - PrivateBin: recipes/kubernetes/privatebin.md # - PrivateBin: recipes/kubernetes/privatebin.md
- CHANGELOG: - CHANGELOG:
- CHANGELOG: CHANGELOG.md - CHANGELOG: CHANGELOG.md
- Support:
- Support: support.md
theme: theme:
name: 'material' name: 'material'
custom_dir: 'overrides' custom_dir: 'overrides'
disqus: 'geeks-cookbook' disqus: 'geeks-cookbook'
logo: 'images/site-logo.png' logo: 'images/site-logo.svg'
favicon: 'images/favicon.ico' favicon: 'images/site-logo.svg'
feature: features:
tabs: true - tabs
- instant
icon:
repo: 'fontawesome/brands/github'
palette: palette:
primary: 'black' primary: 'black'
accent: 'indigo' accent: 'indigo'
font: font:
text: 'Ubuntu' text: 'Ubuntu'
code: 'Ubuntu Mono' code: 'Ubuntu Mono'
extra:
social: social:
- type: 'github' - icon: 'fontawesome/brands/github'
link: 'https://github.com/funkypenguin' link: 'https://github.com/funkypenguin'
- type: 'twitter' - icon: 'fontawesome/brands/twitter'
link: 'https://twitter.com/funkypenguin' link: 'https://twitter.com/funkypenguin'
- type: 'stack-overflow' - icon: 'fontawesome/brands/stack-overflow'
link: 'https://stackoverflow.com/cv/funkypenguin' link: 'https://stackoverflow.com/cv/funkypenguin'
- type: 'rss' - icon: 'material/rss'
link: 'https://www.funkypenguin.co.nz/' link: 'https://www.funkypenguin.co.nz/'
- type: 'linkedin' - icon: 'fontawesome/brands/linkedin'
link: 'https://www.linkedin.com/in/funkypenguin' link: 'https://www.linkedin.com/in/funkypenguin'
- type: 'envelope' - icon: 'material/library'
link: 'mailto:davidy@funkypenguin.co.nz?Subject=Hello%2C%20from%20a%20geek-cookbook%20reader%20%3B%29' link: 'https://leanpub.com/geeks-cookbook'
- type: 'book'
link: 'https://leanpub.com/geeks-cookbook'
# Google Analytics # Google Analytics
google_analytics: google_analytics:
@@ -222,7 +236,9 @@ markdown_extensions:
- pymdownx.caret - pymdownx.caret
- pymdownx.critic - pymdownx.critic
- pymdownx.details - pymdownx.details
- pymdownx.emoji - pymdownx.emoji:
emoji_index: !!python/name:pymdownx.emoji.twemoji
emoji_generator: !!python/name:pymdownx.emoji.to_svg
- pymdownx.inlinehilite - pymdownx.inlinehilite
- pymdownx.magiclink: - pymdownx.magiclink:
repo_url_shorthand: true repo_url_shorthand: true
@@ -234,4 +250,5 @@ markdown_extensions:
- pymdownx.tasklist: - pymdownx.tasklist:
custom_checkbox: true custom_checkbox: true
- pymdownx.tilde - pymdownx.tilde
- pymdownx.tabbed
- meta - meta

View File

@@ -1,3 +1,4 @@
#!/bin/bash #!/bin/bash
docker pull squidfunk/mkdocs-material:5.1.1
docker build . -t funkypenguin/mkdocs-material 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