cloud_sptheme - helper functions

The main cloud_sptheme module contains the following helper functions:

cloud_sptheme.get_theme_dir()[source]

Returns path to directory containing this package’s Sphinx themes.

Deprecated since version 1.7: As of Sphinx 1.2, this is passed to Sphinx via a setup.py entry point, and no longer needs to be included in your documentation’s conf.py.

cloud_sptheme.get_version(release)[source]

Derive short version string from longer ‘release’ string.

This is quick helper which takes a project’s release string, and generates the shortened version string required by conf.py. Usage example for conf.py:

import cloud_sptheme as csp

...

# The version info for the project you're documenting
from myapp import __version__ as release
version = csp.get_version(release)