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/
  • You might need to add 2 additional dependencies to be able to run this project locally:
    • pip install mkdocs-redirects
    • pip 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 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.1.0.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: mkdocs_traefiklabs-100.1.0.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

Hashes for mkdocs_traefiklabs-100.1.0.tar.gz
Algorithm Hash digest
SHA256 ba20e7e2a1c73c741ff25ecdb39d701da6f499846414945f3f99cd9b1f5c5c62
MD5 4a98152e589c081bc1a8c90e1967b8d3
BLAKE2b-256 3ef7138264694bb81c64c7d4c1006bb11ad859890516d918cfc5bda1b9275471

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mkdocs_traefiklabs-100.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ad7f682ea496b15e30c7a047f4e89df72f5e69df8b32fb676ac8892fdf480ecb
MD5 32e2011b9ee2ea1bbc5e5f2e09f72b20
BLAKE2b-256 ac29a70eb596383f94c128748ff048d43e2dde95b6799800c177fd97866c95b5

See more details on using hashes here.

Supported by

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