Skip to content

Commit ee362a7

Browse files
committed
Update docs
1 parent 7d9e708 commit ee362a7

File tree

4 files changed

+38
-3
lines changed

4 files changed

+38
-3
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy Docs to Github Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- 'master'
7+
paths:
8+
- 'docs/**'
9+
workflow_dispatch:
10+
11+
jobs:
12+
build:
13+
name: Deploy Docs to Github Pages
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
- name: Set up Python
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: '3.8'
24+
- name: Install MkDocs
25+
run: pip install -r docs/requirements.txt
26+
- name: Run MkDocs
27+
run: mkdocs gh-deploy

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.cache/
33
.mypy_cache/
44
.ropeproject/
5+
.venv/
56
__pycache__/
67
site/
78
var/

docs/requirements.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
mkdocs
2+
mkdocs-material
3+
mkdocs-git-revision-date-localized-plugin
4+
mkdocs-minify-plugin
5+
pymdown-extensions

mkdocs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ theme:
2222
palette:
2323
primary: indigo
2424
accent: red
25-
logo:
26-
icon: description
25+
26+
plugins:
27+
- minify:
28+
minify_html: true
2729

2830
markdown_extensions:
2931
- markdown.extensions.admonition:
@@ -34,7 +36,7 @@ markdown_extensions:
3436
- markdown.extensions.def_list:
3537
- markdown.extensions.tables:
3638
- markdown.extensions.abbr:
37-
- pymdownx.extrarawhtml:
39+
# - pymdownx.extrarawhtml:
3840
- pymdownx.superfences:
3941
- pymdownx.highlight:
4042
css_class: codehilite

0 commit comments

Comments
 (0)