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.jsshipped with the original theme has problems expanding the sidebar items and it's not easy to fix it only usingextra_javascript.
pip install -U mkdocs-rtdtheme:
name: rtdAll options are the same when using the original theme (readthedocs). See also:
https://www.mkdocs.org/user-guide/choosing-your-theme/#readthedocs
- 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
ignoreUnescapedHTMLtotrueforhljs - Keep current sidebar item always in view when scrolling