mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-06-14 11:52:32 +03:00
Simplified theme setup
This commit is contained in:
2
.github/workflows/documentation.yml
vendored
2
.github/workflows/documentation.yml
vendored
@@ -55,7 +55,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install .
|
|
||||||
pip install \
|
pip install \
|
||||||
"cairosvg>=2.5" \
|
"cairosvg>=2.5" \
|
||||||
"mkdocs-git-committers-plugin-2>=1.1.1" \
|
"mkdocs-git-committers-plugin-2>=1.1.1" \
|
||||||
@@ -77,7 +76,6 @@ jobs:
|
|||||||
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
git clone --depth 1 https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||||
pip install -e mkdocs-material-insiders
|
pip install -e mkdocs-material-insiders
|
||||||
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
|
cp mkdocs-material-insiders/mkdocs.yml mkdocs.yml
|
||||||
echo "THEME_DIR=mkdocs-material-insiders/material" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Deploy documentation
|
- name: Deploy documentation
|
||||||
env:
|
env:
|
||||||
|
|||||||
14
mkdocs.yml
14
mkdocs.yml
@@ -35,19 +35,7 @@ copyright: Copyright © 2016 - 2022 Martin Donath
|
|||||||
|
|
||||||
# Configuration
|
# Configuration
|
||||||
theme:
|
theme:
|
||||||
name: null
|
name: material
|
||||||
custom_dir: !ENV [THEME_DIR, "material"]
|
|
||||||
|
|
||||||
# Static files
|
|
||||||
static_templates:
|
|
||||||
- 404.html
|
|
||||||
|
|
||||||
# Don't include MkDocs' JavaScript
|
|
||||||
include_search_page: false
|
|
||||||
search_index_only: true
|
|
||||||
|
|
||||||
# Default values, taken from mkdocs_theme.yml
|
|
||||||
language: en
|
|
||||||
features:
|
features:
|
||||||
# - announce.dismiss
|
# - announce.dismiss
|
||||||
- content.code.annotate
|
- content.code.annotate
|
||||||
|
|||||||
Reference in New Issue
Block a user