MkDocs plugin for TCCP documentation styles
Project description
TCCP Docs Styles MkDocs Plugin
This plugin adds custom styles to a MkDocs project that uses MkDocs Material. It uses the Modus colors from Trimble and automatically adds the pallet node to the theme to enable dark mode and the theme switcher.
Installation
pip install tccp-docs-styles
Usage
Add to your mkdocs.yml file
plugins:
- tccp-docs-styles
Dependencies
This plugin expects the following markdown extensions to be installed
markdown_extensions:
- admonition
- pymdownx.details
- pymdownx.superfences
- attr_list
Developing
Setup your environment, different steps for demo or deploy
All
# setup a virtual python env
python3 -m venv .venv
# source your python env
source .venv/bin/activate
# install dependencies
pip install -r requirements.txt
Demo - Local
# install the plugin in development mode
pip install -e .
# serve the develop/demo project
mkdocs serve
Demo - GH Pages (Action)
# install the plugin in development mode
pip install -e .
# serve the develop/demo project
mkdocs gh-deploy --force
Deploy
# build the plugin
python3 -m build
# push package to test pypi
twine upload -r testpypi dist/*
# push package to pypi
python3 -m twine upload dist/*
Solving some of the issues publishing the plugin
SSL Cert verification error
# For Python installed via pyenv or Homebrew
/Applications/Python\ 3.12/Install\ Certificates.command
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
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_tccp_docs_styles-0.2.6.tar.gz.
File metadata
- Download URL: mkdocs_tccp_docs_styles-0.2.6.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5d6533f530499a8af501ad54c08326bdd3773ccd7e53591bbc941dc606b72af
|
|
| MD5 |
e2ac366502f23b3e2803442cb438bac9
|
|
| BLAKE2b-256 |
b0358e2e4e4503001fda8619ed19c18f927f00157e60d7f1672d4d665ed7e1f1
|
File details
Details for the file mkdocs_tccp_docs_styles-0.2.6-py3-none-any.whl.
File metadata
- Download URL: mkdocs_tccp_docs_styles-0.2.6-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e12f4d391a5a5413ff9bb2447c50ab48acf9ae11dda4fdc5f01a41bf2c724113
|
|
| MD5 |
ec6330649a66fab27911c1913a01a7ed
|
|
| BLAKE2b-256 |
edae31445a9f2081bd525d3406e55937b577bbb74a5c7e4dc408006602846889
|