Skip to main content

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


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.2.3.tar.gz (119.0 kB view details)

Uploaded Source

Built Distribution

mkdocs_ponylang-0.2.3-py3-none-any.whl (142.7 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-ponylang-0.2.3.tar.gz.

File metadata

  • Download URL: mkdocs-ponylang-0.2.3.tar.gz
  • Upload date:
  • Size: 119.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

File hashes

Hashes for mkdocs-ponylang-0.2.3.tar.gz
Algorithm Hash digest
SHA256 8c83adc928252a05c8d918197bcf76e92bb572620ad4bd23c1b8ee939a351c1c
MD5 faf51b26eb39b3fa5134e2dad1527dd8
BLAKE2b-256 9f5ffe87e635c5ec30102da05431e6b4f136f4022d663776b21cf080c9dee54f

See more details on using hashes here.

File details

Details for the file mkdocs_ponylang-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_ponylang-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 142.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

File hashes

Hashes for mkdocs_ponylang-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58cb32e9c8d787ef814bb565b6366e9052cb3e0a0feb6a567adab2441e5939e8
MD5 6430a6e65e9d509df792b13c829e7f3f
BLAKE2b-256 66034a94feed56b319bfab819f646d81bd8083b2d3141920c5e2bf43bea6efc6

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