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.10.tar.gz
(2.8 MB
view details)
Built Distribution
File details
Details for the file mkdocs_rtd-0.0.10.tar.gz
.
File metadata
- Download URL: mkdocs_rtd-0.0.10.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.10 Linux/5.15.0-1050-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c13e205274bbd894a0a5ea5288850bcfa3fd49170dcde495e7934fb18bd2dc6 |
|
MD5 | 0268d13bb2c16e5fb6f187fef2feec51 |
|
BLAKE2b-256 | 7a547c9ebe7fac72ff037aeeb5aacdeb6d0b46ff511f49f301efdf988bc0e7ad |
File details
Details for the file mkdocs_rtd-0.0.10-py3-none-any.whl
.
File metadata
- Download URL: mkdocs_rtd-0.0.10-py3-none-any.whl
- Upload date:
- Size: 2.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.8.10 Linux/5.15.0-1050-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ca42cbe9f64cf79ae672599d2ed12ff517aa413d7a895359fbcef8822741d11 |
|
MD5 | c42c20f27ab4cc0c876f02b4326bdbfd |
|
BLAKE2b-256 | 84d0cef09b20c3640375ffc6ddae639a7f534358a1d9219f7282941f12fbda05 |