Skip to main content

A fork of mkdocs readthedocs theme to make it work with mkapi

Project description

mkdocs-rtd

A fork of mkdocs readthedocs theme to make it work better, especially with mkapi.

Why just use extra_css and extra_javascript?

  • The javascript written in theme.js shipped with the original theme has problems expanding the sidebar items and it's not easy to fix it only using extra_javascript.

Installation

pip install -U mkdocs-rtd

Usage

theme:
  name: rtd

All options are the same when using the original theme (readthedocs). See also: https://www.mkdocs.org/user-guide/choosing-your-theme/#readthedocs

Modifications

  • Add social icons (only Github supported now) to the top right corner of the page.
  • Adjust some styles
  • Open external links in new tab by default
  • Do not reset side nav items when url hash is # or empty
  • Make search box sticky
  • Add css support for pymdownx.blocks.tab (must use alternate_style: true)
  • Set ignoreUnescapedHTML to true for hljs
  • Keep current sidebar item always in view when scrolling

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_rtd-0.0.12.tar.gz (2.8 MB view details)

Uploaded Source

Built Distribution

mkdocs_rtd-0.0.12-py3-none-any.whl (2.8 MB view details)

Uploaded Python 3

File details

Details for the file mkdocs_rtd-0.0.12.tar.gz.

File metadata

  • Download URL: mkdocs_rtd-0.0.12.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-1059-azure

File hashes

Hashes for mkdocs_rtd-0.0.12.tar.gz
Algorithm Hash digest
SHA256 411e212ac26a1b5e5b956aeda2de85a13028473e306741559d941d112527b7ff
MD5 c86b264624a7e962970c76d59856478c
BLAKE2b-256 d1352efd6b419e6ebabb5cad53a1bd0e1a26e44a3adba13f39814804b80e5a7a

See more details on using hashes here.

File details

Details for the file mkdocs_rtd-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_rtd-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-1059-azure

File hashes

Hashes for mkdocs_rtd-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 c77e4aff91ff2fe95f9cbbc071cf5a9512b7123bec034c0e31720de667b74c81
MD5 dd4f1ceaf34435274d4eafa8999417a4
BLAKE2b-256 28db3885f46dabf40183a338b58785bde7cc73fb5976a2acfa36e1bc7eec57f4

See more details on using hashes here.

Supported by

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