This commit is contained in:
vabene1111 2021-01-03 09:57:15 +01:00
parent c4aa3eb019
commit 5feeabb498
6 changed files with 36 additions and 52 deletions

16
.github/workflows/docs.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: generate docs
on:
push:
branches:
- master
- develop
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force

View File

@ -1 +0,0 @@
theme: jekyll-theme-minimal

View File

@ -1,12 +0,0 @@
- title: Home
url: /
- title: Group of Things
url: /group/
sublinks:
- title: Sub-item 1
url: /group/si1
- title: Sub-item 2
url: /group/si2
- title: Sub-item 3
url: /group/si3

View File

@ -1,37 +0,0 @@
{% for entry in site.data.navigation %}
{% capture fullurl %}{{ site.baseurl }}{{ entry.url }}{% endcapture %}
{% if fullurl == page.url %}
{% assign current_page = fullurl %}
{% break %}
{% elsif page.url contains fullurl %}
{% assign current_page = fullurl %}
{% endif %}
{% endfor %}
<!-- Then we build the nav bar. -->
<nav>
<ul>
{% for entry in site.data.navigation %}
{% if entry.url == current_page %}
<!-- uses yellow, you can change to any other hexadecimal colour code. -->
{% assign current = ' style="background-color: #FFFFFF"' %}
{% else %}
<!-- We have to declare it 'null' to ensure it doesn't propagate. -->
{% assign current = null %}
{% endif %}
{% assign sublinks = entry.sublinks %}
{% if sublinks %}
<li{{ current }}>
<a href="{{ site.baseurl }}{{ entry.url }}">{{ entry.title }}</a>
<ul>
{% for sublink in sublinks %}
<li><a href="{{ site.baseurl }}{{ sublink.url }}">{{ sublink.title }}</a></li>
{% endfor %}
</ul>
</li>
{% else %}
<li{{ current }}><a href="{{ site.baseurl }}{{ entry.url }}">{{ entry.title }}</a></li>
{% endif %}
{% endfor %}
</ul>
</nav>

View File

@ -2,8 +2,6 @@
The recipe manager that allows you to manage your ever growing collection of digital recipes.
{{ site.data.navigation}}
## Features
- :package: **Sync** files with Dropbox and Nextcloud (more can easily be added)

20
mkdocs.yml Normal file
View File

@ -0,0 +1,20 @@
theme:
name: null
custom_dir: mkdocs-material/material
# 404 page
static_templates:
- 404.html
# Necessary for search to work properly
include_search_page: false
search_index_only: true
# Default values, taken from mkdocs_theme.yml
language: en
font:
text: Roboto
code: Roboto Mono
favicon: cookbook/static/favicon.png
icon:
logo: logo