Updated documentation workflow

This commit is contained in:
squidfunk
2026-05-01 19:21:18 +02:00
parent 280423fd75
commit 1ef0db3f45

View File

@@ -37,7 +37,6 @@ jobs:
name: Build documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
@@ -78,16 +77,11 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
# Warning: please don't use this method when installing Insiders from
# CI! We have to do it this way in order to allow for overrides on our
# own documentation, but you should stick to the method we recommend
# in the publishing guide see https://bit.ly/3zjdJtw
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
pip install -e mkdocs-material-insiders
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
# echo 'extra_javascript: [${{ vars.CHAT_CLIENT_URL }}]' >> mkdocs.yml
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-overrides.git
pip install -e mkdocs-material-overrides
cp mkdocs-material-overrides/mkdocs.yml mkdocs.yml
rm -rf material
cp -r mkdocs-material-insiders/material material
cp -r mkdocs-material-overrides/material material
- name: Build documentation
env: