diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..61df2121a --- /dev/null +++ b/.github/workflows/docs.yml @@ -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 \ No newline at end of file diff --git a/docs/_config.yml b/docs/_config.yml deleted file mode 100644 index 2f7efbeab..000000000 --- a/docs/_config.yml +++ /dev/null @@ -1 +0,0 @@ -theme: jekyll-theme-minimal \ No newline at end of file diff --git a/docs/_data/navigation.yml b/docs/_data/navigation.yml deleted file mode 100644 index 0a25b62f2..000000000 --- a/docs/_data/navigation.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/docs/_includes/navigation.html b/docs/_includes/navigation.html deleted file mode 100644 index 07a07ef42..000000000 --- a/docs/_includes/navigation.html +++ /dev/null @@ -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 %} - - - \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index d3969b08c..7aaf3bab4 100644 --- a/docs/index.md +++ b/docs/index.md @@ -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) diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 000000000..1584f78d9 --- /dev/null +++ b/mkdocs.yml @@ -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 \ No newline at end of file