mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:31:42 -04:00
Updated documentation workflow
This commit is contained in:
14
.github/workflows/documentation.yml
vendored
14
.github/workflows/documentation.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user