mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2026-07-22 05:53:03 -04:00
Test documentation build
This commit is contained in:
19
.github/workflows/documentation.yml
vendored
19
.github/workflows/documentation.yml
vendored
@@ -42,23 +42,20 @@ jobs:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
|
||||
- name: Install Python dependencies
|
||||
if: github.event.repository.fork == false
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
run: |
|
||||
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||
pip install \
|
||||
mkdocs-minify-plugin>=0.3 \
|
||||
mkdocs-redirects>=1.0
|
||||
|
||||
- name: Install Python dependencies
|
||||
if: github.event.repository.fork == true
|
||||
run: |
|
||||
pip install .
|
||||
pip install \
|
||||
mkdocs-minify-plugin>=0.3 \
|
||||
mkdocs-redirects>=1.0
|
||||
|
||||
- name: Install Insiders build
|
||||
if: github.event.repository.fork == false
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
run: |
|
||||
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git material
|
||||
echo "::set-env name=THEME_DIR::mkdocs-material-insiders/material"
|
||||
|
||||
- name: Deploy documentation
|
||||
env:
|
||||
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
|
||||
|
||||
Reference in New Issue
Block a user