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

Uploaded Source

Built Distribution

mkdocs_rtd-0.0.14-py3-none-any.whl (2.8 MB view hashes)

Uploaded Python 3

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