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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: mkdocs-ponylang-0.2.7.tar.gz
  • Upload date:
  • Size: 116.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.21.0 setuptools/52.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for mkdocs-ponylang-0.2.7.tar.gz
Algorithm Hash digest
SHA256 4cec659210d2f1642cb3d1e7d2506882056247f970a3ec583ab48ee25f54d43d
MD5 8a4bf2cc7802098cf2d13d6cc74d82ea
BLAKE2b-256 3e2f1879b693827c1330a61bdfdbc2711fe5cbc479d36ada59e1835632c9a235

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mkdocs_ponylang-0.2.7-py3-none-any.whl
  • Upload date:
  • Size: 142.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.21.0 setuptools/52.0.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.5

File hashes

Hashes for mkdocs_ponylang-0.2.7-py3-none-any.whl
Algorithm Hash digest
SHA256 724b96c06ae54b9a9033d0a287343f476c924e9bd82548084324a87761b8ad16
MD5 f29140cbacf8dba60edca55c15658ed5
BLAKE2b-256 68f0fe15353f7a93bf25c9f841ec5662e3f08c0e9f372d21e37c96366157ac0c

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