Skip to main content

A Traefik Labs branded Material Design theme for MkDocs

Project description

Material for MkDocs

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 use to set the correct node version to the environment.
  • Check if you have mkdocs installed locally (it requires Python). You can find installation instructions here: https://www.mkdocs.org/user-guide/installation/

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 product config in the mkdocs.yml file 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 build is 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs_traefiklabs-100.0.21.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

mkdocs_traefiklabs-100.0.21-py2.py3-none-any.whl (5.5 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file mkdocs_traefiklabs-100.0.21.tar.gz.

File metadata

  • Download URL: mkdocs_traefiklabs-100.0.21.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.3

File hashes

Hashes for mkdocs_traefiklabs-100.0.21.tar.gz
Algorithm Hash digest
SHA256 42e70718825234de9ef2a971ba471de64455ee50c6a75ca3b662bb70dd1ad861
MD5 767b5646f0fb88abb132d1b20fa13b63
BLAKE2b-256 7da522e28c93829e80b3394cdf1ad77cc0dc0ea2fcf3cc60691001a2e0373379

See more details on using hashes here.

File details

Details for the file mkdocs_traefiklabs-100.0.21-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_traefiklabs-100.0.21-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 42fbed0c9d56c6599caf8789b31a7344be03bad951643dc3ebefc449717f7b1a
MD5 6ff801c740d82bd6a38ef46a6f1a750e
BLAKE2b-256 76b7d978d631fe0933a9ebee022785cf40d9db3d357ab7b12c5cd96368bdf1bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page