Skip to content

Commit 97a8861

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

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
@@ -9,10 +9,10 @@ jobs:
99
name: Deploy docs
1010
runs-on: ubuntu-latest
1111
steps:
12-
- name: Checkout master
13-
uses: actions/checkout@v1
14-
15-
- name: Deploy docs
16-
uses: mhausenblas/mkdocs-deploy-gh-pages@master
17-
env:
18-
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.x
16+
- run: pip install mkdocs-material
17+
- run: pip install mkdocs-git-revision-date-localized-plugin
18+
- 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)