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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mkdocs_rtd-0.0.6.tar.gz
Algorithm Hash digest
SHA256 0c08576f0506cb716b0a5c81b7ead8af742a42a367edcab48ddfe81e7dd03c05
MD5 4e9ff2f6180b839483e8d1ac437e0c66
BLAKE2b-256 5047de7ab097c410d3aadc1db7da6ac6412f0e52d2ad5e62bc5a41b08992da24

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mkdocs_rtd-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 dd43251e6b192be6f2600aaff2b9846104c5a2452b7c05df338b5e46ade5b475
MD5 b454e2bd830982126f0d9833fcc9351e
BLAKE2b-256 d8780fe56facd8bb6a9c0b1aff5b08a16a19677eef8c3d7dbfd0df99a18ba9ef

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