Skip to content

Commit fd26972

Browse files
committed
Test documentation build
1 parent 1a554c8 commit fd26972

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

.github/workflows/documentation.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,19 @@ jobs:
4242
python-version: ${{ env.PYTHON_VERSION }}
4343

4444
- name: Install Python dependencies
45-
if: github.event.repository.fork == false
46-
env:
47-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4845
run: |
49-
pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
46+
pip install .
5047
pip install \
5148
mkdocs-minify-plugin>=0.3 \
5249
mkdocs-redirects>=1.0
5350
54-
- name: Install Python dependencies
55-
if: github.event.repository.fork == true
51+
- name: Install Insiders build
52+
if: github.event.repository.fork == false
53+
env:
54+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
5655
run: |
57-
pip install .
58-
pip install \
59-
mkdocs-minify-plugin>=0.3 \
60-
mkdocs-redirects>=1.0
56+
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git material
57+
echo "::set-env name=THEME_DIR::mkdocs-material-insiders/material"
6158
6259
- name: Deploy documentation
6360
env:

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ copyright: Copyright © 2016 - 2021 Martin Donath
3838
# Configuration
3939
theme:
4040
name: null
41-
custom_dir: material
41+
custom_dir: !ENV [THEME_DIR, "material"]
4242

4343
# Static files
4444
static_templates:
@@ -105,7 +105,7 @@ plugins:
105105
extra:
106106
analytics:
107107
provider: google
108-
property: !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"]
108+
property: !ENV GOOGLE_ANALYTICS_KEY
109109
social:
110110
- icon: fontawesome/brands/github
111111
link: https://github.com/squidfunk

0 commit comments

Comments
 (0)