Skip to content

Commit d3b5e07

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 03a5a19 commit d3b5e07

File tree

2 files changed

+29
-11
lines changed

2 files changed

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

0 commit comments

Comments
 (0)