Ponylang Material theme for MkDocs
Project description
Ponylang Mkdocs Theme
A customized theme based on https://github.com/squidfunk/mkdocs-material for MkDocs of the Ponylang Standard Library documentation.
Usage
Install the theme from PyPI:
pip install mkdocs-ponylang
In your mkdocs.yml
file, change the theme:
theme:
name: ponylang
Customization
Table of contents
# Enable permalinks
markdown_extensions:
- markdown.extensions.toc:
permalink: true
# Set maximum depth
theme:
max_toc_depth: 2
Palette
theme:
palette:
primary: brown
accent: amber
You can choose from primary and accent colors listed here.
Icons
theme:
favicon: asserts/image/logo.png
logo:
icon: cloud
Logos can be images or Material icons (more info here).
Source repository
repo_name: ponylang/ponyc
repo_url: https://github.com/ponylang/ponyc
Other customizations
Extra customization options are available in the Material theme documentation.
Development
Requirements
- Python 3
- npm
- libpng-dev
Installation
This will set up all of the necessary packages to install the theme locally.
git clone https://github.com/ponylang/mkdocs-theme
cd mkdocs-theme
python -m venv venv
source venv/bin/activate
pip install -e .
npm install
Build
Compile files from src/
with Webpack:
npm run build
Distribution
Upload to PyPI with Twine:
Remember to use the python from the virtualenv you created above.
rm dist/*
python setup.py sdist bdist_wheel
twine upload dist/*
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
Hashes for mkdocs_ponylang-0.2.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3853269a6187fa4b8bc56e90ddfa4cc5d93899c6e1bc030a8f0c58a1b9502e8 |
|
MD5 | 9c6c31c2bdb8dbed28d15a88de639155 |
|
BLAKE2b-256 | 93cf02b0410e78ce5a872a098bdb7164d4f20cdcd207450114388e7e6b36749b |