Skip to main content

Ponylang theme for MkDocs

Project description

Based on https://github.com/rtfd/sphinx_rtd_theme and https://github.com/mkdocs/mkdocs/tree/master/mkdocs/themes/readthedocs .

The sources for generating the theme files is mostly in src folder, it is generated using webpack. The theme itself is distributed as python package and can be referenced in your mkdocs.yml as:

theme: ponylang

Setup

You need to have npm installed. I installed it using asdf, but any installation method will do.

Install yarn to install further dependencies:

npm install -g yarn
yarn install

In order to regenerate the theme files inside the mkdocs_ponylang folder, run:

webpack

The Webpack executable should be in your global node installation and thus on your path. If not, search for it and add it to your path.

For an asdf installation, adding this to my shell initialization file (e.g. $HOME/.bashrc) helped:

export PATH="$HOME/.asdf/installs/nodejs/$(asdf which nodejs)/.npm/bin:$PATH"

Installation

Local Development

git clone git@github.com:mfelsche/ponylang-mkdocs-theme.git
cd ponylang-mkdocs-theme
pip install -e .

From Git

pip install -e git+https://github.com/mfelsche/ponylang-mkdocs-theme#egg=mkdocs_ponylang

From PyPI

pip install mkdocs-ponylang

Usage

Reference this theme from your mkdocs.yml configuration file like so:

theme: ponylang

Publishing

The package is packaged and distributed on the Python Package Index (PyPI).

pip install -U wheel twine
cd ponylang-mkdocs-theme
rm -rf ./dist/*
python setup.py sdist bdist_wheel
twine upload

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_ponylang-0.0.14.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

mkdocs_ponylang-0.0.14-py2.py3-none-any.whl (1.5 MB view details)

Uploaded Python 2 Python 3

File details

Details for the file mkdocs_ponylang-0.0.14.tar.gz.

File metadata

File hashes

Hashes for mkdocs_ponylang-0.0.14.tar.gz
Algorithm Hash digest
SHA256 80a259a6d558e5e89a12380b9aa8cad73d3d9d705c4ae5e8419f63db031aee85
MD5 410c333ee354ef78a7ef4d14800646bd
BLAKE2b-256 c85b8f5d01fe613129836972fbb185376ac3962d7be0276c102ad9a55aca25dd

See more details on using hashes here.

File details

Details for the file mkdocs_ponylang-0.0.14-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_ponylang-0.0.14-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6f781d1ad12e6ff0d261204f86e41c7469f15636afb8fc024d3ed5e04ebeb81f
MD5 94317db12f4ad61a85779c70f5a39e2b
BLAKE2b-256 ce0fd0ee238e4c454f56c399a49cac4de3e12596161d355acdd54baba1028d5b

See more details on using hashes here.

Supported by

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