mk docs
This commit is contained in:
parent
c4aa3eb019
commit
5feeabb498
16
.github/workflows/docs.yml
vendored
Normal file
16
.github/workflows/docs.yml
vendored
Normal 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
|
@ -1 +0,0 @@
|
|||||||
theme: jekyll-theme-minimal
|
|
@ -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
|
|
@ -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>
|
|
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
The recipe manager that allows you to manage your ever growing collection of digital recipes.
|
The recipe manager that allows you to manage your ever growing collection of digital recipes.
|
||||||
|
|
||||||
{{ site.data.navigation}}
|
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
- :package: **Sync** files with Dropbox and Nextcloud (more can easily be added)
|
- :package: **Sync** files with Dropbox and Nextcloud (more can easily be added)
|
||||||
|
20
mkdocs.yml
Normal file
20
mkdocs.yml
Normal 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
|
Loading…
Reference in New Issue
Block a user