mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-12 01:50:52 +01:00
Test documentation build
This commit is contained in:
parent
1a554c8bb0
commit
fd26972411
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 }}
|
||||
|
@ -38,7 +38,7 @@ copyright: Copyright © 2016 - 2021 Martin Donath
|
||||
# Configuration
|
||||
theme:
|
||||
name: null
|
||||
custom_dir: material
|
||||
custom_dir: !ENV [THEME_DIR, "material"]
|
||||
|
||||
# Static files
|
||||
static_templates:
|
||||
@ -105,7 +105,7 @@ plugins:
|
||||
extra:
|
||||
analytics:
|
||||
provider: google
|
||||
property: !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"]
|
||||
property: !ENV GOOGLE_ANALYTICS_KEY
|
||||
social:
|
||||
- icon: fontawesome/brands/github
|
||||
link: https://github.com/squidfunk
|
||||
|
Loading…
Reference in New Issue
Block a user