diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 10ada577..08949b98 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -9,14 +9,35 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Check out repository code + uses: actions/checkout@v3 - uses: actions/setup-python@v4 with: - python-version: '3.10' + python-version: '3.12' + - name: Load cached dependencies + id: cached-deps + uses: actions/cache@v3 + with: + path: /home/runner/.cache + key: ${{ runner.os }}-deps-${{ hashFiles('**/poetry.lock', '**/requirements*.txt', '**/apt-packages.txt') }} + restore-keys: ${{ runner.os }}-deps- + - name: Install dependencies + run: | + if [ -f apt-packages.txt ]; then + mkdir -p /home/runner/.cache/apt/archives + apt-get update + apt-get upgrade -y + apt-get -o dir::cache::archives="/home/runner/.cache/apt/archives" install -y --no-install-recommends $(cat apt-packages.txt) + apt-get clean + fi + python -m pip install --upgrade pip + pip install poetry + poetry config virtualenvs.path /home/runner/.cache/pypoetry/virtualenvs + poetry install --no-root --no-interaction --no-ansi # disable for social plugin to give KeyError: 'Regular' # - uses: actions/cache@v2 # with: # key: ${{ github.ref }} # path: .cache - - run: pip install -r requirements.txt - - run: mkdocs gh-deploy --remote-branch gh-pages --force + - name: Deploy + run: poetry run mkdocs gh-deploy --remote-branch gh-pages --force diff --git a/README.md b/README.md index 2abd65e6..059c93c6 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,2 @@ - - # Wiki -This repo is the origin repo used to build my [wiki](https://wiki.adhadse.com). \ No newline at end of file +This repo is the origin repo used to build my [wiki](https://wiki.adhadse.com). diff --git a/overrides/home.html b/overrides/home.html index 89a5d9dc..67870caf 100644 --- a/overrides/home.html +++ b/overrides/home.html @@ -2,23 +2,22 @@ block libs %} {{ super() }} diff --git a/overrides/main.html b/overrides/main.html index dfd5b054..05ddd3c4 100644 --- a/overrides/main.html +++ b/overrides/main.html @@ -1,29 +1,28 @@ {% extends "base.html" %} {% block libs %} {{ super() }} -