From 257127bd4efa16480e89c78149b1ece4c03ba886 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Sun, 3 Jan 2021 10:34:14 +0100 Subject: [PATCH] ... --- .github/workflows/docs.yml | 39 +++++--------------------------------- mkdocs.yml | 20 +------------------ 2 files changed, 6 insertions(+), 53 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 4b194228..64cbea82 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -7,40 +7,11 @@ on: jobs: deploy: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - - name: Setup Python - uses: actions/setup-python@v2 + - uses: actions/setup-python@v2 with: - python-version: '3.8' - - - name: Upgrade pip - 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 \ No newline at end of file + python-version: 3.x + - run: pip install mkdocs-material + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 2e09128e..24e5a2af 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,21 +1,3 @@ site_name: Recipes 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 + name: material \ No newline at end of file