...
This commit is contained in:
parent
b1df118140
commit
257127bd4e
39
.github/workflows/docs.yml
vendored
39
.github/workflows/docs.yml
vendored
@ -7,40 +7,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
- name: Setup Python
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
with:
|
||||||
python-version: '3.8'
|
python-version: 3.x
|
||||||
|
- run: pip install mkdocs-material
|
||||||
- name: Upgrade pip
|
- run: mkdocs gh-deploy --force
|
||||||
run: |
|
|
||||||
# install pip=>20.1 to use "pip cache dir"
|
|
||||||
python3 -m pip install --upgrade pip
|
|
||||||
|
|
||||||
- name: Get pip cache dir
|
|
||||||
id: pip-cache
|
|
||||||
run: echo "::set-output name=dir::$(pip cache dir)"
|
|
||||||
|
|
||||||
- name: Cache dependencies
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: ${{ steps.pip-cache.outputs.dir }}
|
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-pip-
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: python3 -m pip install -r ./requirements.txt
|
|
||||||
|
|
||||||
- run: mkdocs build
|
|
||||||
|
|
||||||
- name: Deploy
|
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
publish_dir: ./site
|
|
||||||
publish_branch: develop
|
|
20
mkdocs.yml
20
mkdocs.yml
@ -1,21 +1,3 @@
|
|||||||
site_name: Recipes
|
site_name: Recipes
|
||||||
theme:
|
theme:
|
||||||
name: null
|
name: material
|
||||||
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