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 usingextra_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 usealternate_style: true
) - Set
ignoreUnescapedHTML
totrue
forhljs
- Keep current sidebar item always in view when scrolling
Project details
Release history Release notifications | RSS feed
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.15.tar.gz
(2.8 MB
view details)
Built Distribution
File details
Details for the file mkdocs_rtd-0.0.15.tar.gz
.
File metadata
- Download URL: mkdocs_rtd-0.0.15.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.10 Linux/5.15.0-1068-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a92ca9319bbcb5e042bb75a45117097827b166eae478ca1cfb7c4db61653af63 |
|
MD5 | fdb2dc3e78689873a792c1e31db81ff5 |
|
BLAKE2b-256 | c02840b973e6de72c904312cc78afe3fbde3bd8c9a4ef435430493b8b494610d |
File details
Details for the file mkdocs_rtd-0.0.15-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_rtd-0.0.15-py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.8.10 Linux/5.15.0-1068-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8bc7b97e03a8ef5a70bac225edd5fbbfa5bd25bec72360c75b611cc7f64cb0a |
|
MD5 | 3032f3260f80ba145010bf4cc0147007 |
|
BLAKE2b-256 | 88538ddc4dd326ef4bdf5109bbf96c2a6baaec5e05aab74fae8adac7cac24e84 |