Skip to content

Commit 8e879b8

Browse files
Willem-Dekkerukkopahis
authored andcommitted
docs: add dark and light theme
Basically contains most changes from: SensorsIot/IOTstack#338 * Dark and light modes * Always expand left-navigation folders, improving usability
1 parent 0ba8250 commit 8e879b8

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
name: Deploy docs
1111
runs-on: ubuntu-latest
1212
steps:
13-
- name: Checkout master
14-
uses: actions/checkout@v1
15-
16-
- name: Deploy docs
17-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
18-
env:
19-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-python@v2
15+
with:
16+
python-version: 3.x
17+
- run: pip install mkdocs-material
18+
- run: pip install mkdocs-git-revision-date-localized-plugin
19+
- run: mkdocs gh-deploy --force

mkdocs.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
site_name: IOTstack
22
site_description: 'Docker stack for getting started on IOT on the Raspberry PI'
3+
4+
5+
# Repository
6+
repo_url: https://github.com/SensorsIot/IOTstack
7+
repo_name: SensorsIot/IOTstack
8+
edit_uri: "https://github.com/SensorsIot/IOTstack/edit/master/"
9+
310
theme:
411
name: material
5-
plugins:
6-
- search
7-
# - awesome-pages
12+
palette:
13+
- scheme: default
14+
toggle:
15+
icon: material/weather-sunny
16+
name: Switch to dark mode
17+
- scheme: slate
18+
toggle:
19+
icon: material/weather-night
20+
name: Switch to light mode
21+
features:
22+
- tabs
23+
- navigation.expand
24+
plugins:
25+
- search
26+
- git-revision-date-localized
827
markdown_extensions:
28+
- admonition
929
- pymdownx.superfences
10-
repo_url: https://github.com/SensorsIot/IOTstack

0 commit comments

Comments
 (0)