Skip to content

Commit

Permalink
docs: add dark and light theme
Browse files Browse the repository at this point in the history
Basically contains most changes from:
SensorsIot#338

* Dark and light modes
* Always expand left-navigation folders, improving usability
  • Loading branch information
Willem-Dekker authored and ukkopahis committed Feb 24, 2022
1 parent e6866e4 commit b716bd1
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 11 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ jobs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@v1

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.x
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
25 changes: 21 additions & 4 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
site_name: IOTstack
site_description: 'Docker stack for getting started on IOT on the Raspberry PI'

# Repository
repo_url: https://github.com/SensorsIot/IOTstack
repo_name: SensorsIot/IOTstack
edit_uri: "https://github.com/SensorsIot/IOTstack/edit/master/"

theme:
name: material
plugins:
- search
# - awesome-pages
palette:
- scheme: default
toggle:
icon: material/weather-sunny
name: Switch to dark mode
- scheme: slate
toggle:
icon: material/weather-night
name: Switch to light mode
features:
- tabs
- navigation.expand
plugins:
- search
markdown_extensions:
- admonition
- pymdownx.superfences
repo_url: https://github.com/SensorsIot/IOTstack

0 comments on commit b716bd1

Please sign in to comment.