A Traefik Labs branded Material Design theme for MkDocs
Project description
A Traefik Labs Material Design theme for MkDocs
Quick start
Material for MkDocs can be installed with pip:
pip install mkdocs-traefiklabs
Add the following line to mkdocs.yml:
theme:
name: traefik-labs
How to run the project in Dev mode
Pre-requisites
- Check your node version, the .nvmrc file mentions the expected version.
If you use nvm, you can run
nvm useto set the correct node version to the environment. - Check if you have
mkdocsinstalled locally (it requires Python). You can find installation instructions here: https://www.mkdocs.org/user-guide/installation/ - You might need to add 2 additional dependencies to be able to run this project locally:
pip install mkdocs-redirectspip install mkdocs-minify-plugin
Steps:
- Install the dependencies
npm install npm run build- this will generate the '/material' folder with the compiled theme (you need to re-run this if you add assets)npm run start- leave this running in a terminal, it will watch for code changes and rebuild the content (but not the assets)npm run serve- will launch a dev server at 127.0.0.1:8000 with the current theme, it has hot reload (not very precise, sometimes you need to hard refresh the page)
If you wish to set the context to see other products information, you need to set the
productconfig in themkdocs.ymlfile in the project's root directory. The dev server should automatically reload and you will see the changes in the browser.
Reminders:
- The 'material' directory generated by the
npm run buildis the one used in the documentation, so please don't forget running the build once you finish all the changes. TODO: add git hooks and run build on pre-push.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_traefiklabs-100.0.25.tar.gz.
File metadata
- Download URL: mkdocs_traefiklabs-100.0.25.tar.gz
- Upload date:
- Size: 3.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7fcbad68c0057973e353779e4261f89a8c07f13d0263fdb831b5dc97c35be89
|
|
| MD5 |
1d5e699c94880966fac3f1c0a770fe8a
|
|
| BLAKE2b-256 |
272a66d1bd90da50599dd129eb9ef4c41c95ff95ce22d5705e6b4f80fed39994
|
File details
Details for the file mkdocs_traefiklabs-100.0.25-py2.py3-none-any.whl.
File metadata
- Download URL: mkdocs_traefiklabs-100.0.25-py2.py3-none-any.whl
- Upload date:
- Size: 5.5 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01a1e6c9a1c57591211b618a157ffba03b603ee835e9d11002794904dd715492
|
|
| MD5 |
dd6592c7386091be96f193e2288d5138
|
|
| BLAKE2b-256 |
102fd8a0b20807df5bc80cf32ffd52206ef799cef0a1f62c0470a87841ce9f9b
|