mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03: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 }}
|
python-version: ${{ env.PYTHON_VERSION }}
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- 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: |
|
run: |
|
||||||
pip install .
|
pip install .
|
||||||
pip install \
|
pip install \
|
||||||
mkdocs-minify-plugin>=0.3 \
|
mkdocs-minify-plugin>=0.3 \
|
||||||
mkdocs-redirects>=1.0
|
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
|
- name: Deploy documentation
|
||||||
env:
|
env:
|
||||||
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
|
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ copyright: Copyright © 2016 - 2021 Martin Donath
|
|||||||
# Configuration
|
# Configuration
|
||||||
theme:
|
theme:
|
||||||
name: null
|
name: null
|
||||||
custom_dir: material
|
custom_dir: !ENV [THEME_DIR, "material"]
|
||||||
|
|
||||||
# Static files
|
# Static files
|
||||||
static_templates:
|
static_templates:
|
||||||
@@ -105,7 +105,7 @@ plugins:
|
|||||||
extra:
|
extra:
|
||||||
analytics:
|
analytics:
|
||||||
provider: google
|
provider: google
|
||||||
property: !!python/object/apply:os.getenv ["GOOGLE_ANALYTICS_KEY"]
|
property: !ENV GOOGLE_ANALYTICS_KEY
|
||||||
social:
|
social:
|
||||||
- icon: fontawesome/brands/github
|
- icon: fontawesome/brands/github
|
||||||
link: https://github.com/squidfunk
|
link: https://github.com/squidfunk
|
||||||
|
|||||||
Reference in New Issue
Block a user