See a live demo.
This is a fork of the original sphinx_press_theme, which is a modern and responsive theme for python's Sphinx documentation generator.
The theme is based on VuePress and uses Vue.js+ Stylus with webpack.
First install the theme:
pip install romnnn_sphinx_press_themeTo use the theme, set the theme name to press in your sphinx project's conf.py:
html_theme = "press"For more information, see the Sphinx theming docs.
-
Build the web assets:
cd ui npm run buildThe generated
theme.css,theme.jsandtheme-vendors.jswill be linked into the theme underromnn_sphinx_press_theme/static. -
Install theme locally:
pip install -e . -
Review the theme by building the theme's documentation under
docs/:make docs
Generated html will be in
docs/build/html.