A Sphinx theme using Bulma
Project description
Currently updating major changes and updates from AccentDesign/karma_sphinx_theme
Check todo list for planned features to be included on release version v0.1.0 (cur: v0.0.12)
A simple responsive theme for sphinx using Bulma featuring:
- Has built-in dark/light color themes using native CSS and JavaScript
- Sphinx built-in text search engine
- Extended Sass rulesets from bulma
- Support for user-defined favicon and logo from sphinx config
- Custom icon font made with Fontello
- Theme user-defined documentation repository reference
Yet to be done a.k.a todo
- Support user-defined colors (primary color can be changed from
conf.py
) -
Enable custom Sass rules on docs build(can be done but requires user to build theme again) - Examples of use with breathe for C++ docs
Installing
Using pip to install this package (recommended using it within a venv):
pip install sphinx-bulma
Configuration
The theme's project-wide options are defined in the src/sphinx-bulma/theme.conf
file, and can be defined in your project's conf.py
via
html_theme_options
. For example:
html_theme_options = {
'navigation_depth': 2, # maximum depth of tree
'includehidden': True, # if true sidebar may include toctrees marked with hidden option
'titles_only': False, # if true removes headers within a page from the sidebar
'display_git': False, # if true options below must be set
'git_host': 'github.com', # git host url
'git_user': 'gh-user', # your git host username
'git_repo': 'doc-repo', # doc repository
'git_blob': 'blob', # default for github
'git_version': 'master/docs/', # docs folder
'git_icon': 'github', # icon to show on docs
'git_desc': 'Check the sources', # link description
'default_palette': 'dark', # default color palette (dark or light)
'sidebar': True, # if true sidebar will be rendered
'primary': 885bfb, # primary color hex value (do not add preceding #)
'primary_invert': fff # primary inverted color hex value (do not add preceding #)
}
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
sphinx-bulma-0.0.12.tar.gz
(981.1 kB
view hashes)
Built Distribution
sphinx_bulma-0.0.12-py3-none-any.whl
(977.9 kB
view hashes)
Close
Hashes for sphinx_bulma-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63ef156a5946ac34690d23a03dfa7e21693a05fb63268066ffdb51fa1958d9e3 |
|
MD5 | 92644af94a3b350db686649ba46bb2ad |
|
BLAKE2b-256 | a2d992b2e8e673dd26dc2934eddb1a01b8abcafa1e05d9ec03748a082a3b6b87 |