Sphinx Bootstrap Theme Updates!
Almost a year ago, I created the Sphinx Bootstrap Theme project to bring together two of my favorite open source technologies - Sphinx and Twitter Bootstrap. Sphinx is a widely-used Python-based authoring tool for creating static websites and API documentation. Twitter Bootstrap is a frontend JavaScript / CSS framework that offers a consistent UI experience, typography, grid systems, navigation / button / other components, and responsive features for mobile design.
Since its introduction, I now use Sphinx with the Bootstrap Theme for my open source Python projects and we use the theme for all internal technical documentation at work. Coming up on the project’s anniversary, it seemed appropriate to add some tweaks and enhancements to increase the usability and extensibility of the theme.
Improvements now available in version 0.1.0 include:
- Upgraded the Bootstrap libraries to version 2.2.1.
- Added new theme options to control UI appearance and behavior.
- Navigation bar menus now have hierarchical sub-menus for a more intuitive experience.
- Reworked the underlying layout code to support fully responsive design, allowing any site to look great on mobile devices like an iPhone or iPad.
- Created a PyPI package to permit installation via
pip install sphinx_bootstrap_theme
.
So let’s see how everything looks and works with the new v0.1.0 theme.
Theme Options
The theme has several new options that you can set in the “conf.py” configuration file.
Bootstrap Theme Demo Site
Let’s start with the Bootstrap Theme’s own demonstration website.
[![Sphinx Bootstrap Theme Desktop View][img_sbt_desk]][img_sbt_desk] [img_sbt_desk]: http://loose-bits.com/media/img/2012/11/19/sbt_desk.png