Skip to main content

OpenStack Docs Theme

Project description

OpenStack docs.openstack.org Sphinx Theme

Theme and extension support for Sphinx documentation that is published to docs.openstack.org. Intended for use by OpenStack projects.

Using the Theme

Prior to using this theme, ensure your project can use the OpenStack brand by referring to the brand guidelines at http://www.openstack.org/brand.

Update the requirements list for your project to include openstackdocstheme (usually in test-requirements.txt).

If your project previously used the oslosphinx theme (without modifying the header navigation), remove oslosphinx from your requirements list, and then in your conf.py you can remove the import statement and extension listing for oslosphinx.

Some of the settings below are included in the file generated by Sphinx when you initialize a project, so they may already have values that need to be changed.

Then modify your Sphinx settings in conf.py to include:

import openstackdocstheme

html_theme = 'openstackdocs'
html_theme_path = [openstackdocstheme.get_html_theme_path()]

Also, you must include these variables so that the “Log a bug” link sends metadata for the project where the docs reside:

# We ask git for the SHA checksum
# The git SHA checksum is used by "log-a-bug"
git_cmd = "/usr/bin/git log | head -n1 | cut -f2 -d' '"
gitsha = os.popen(git_cmd).read().strip('\n')
# tag that reported bugs will be tagged with
bug_tag = "your-chosen-tag"
# source tree
pwd = os.getcwd()
# html_context allows us to pass arbitrary values into the html template
html_context = {"pwd": pwd, "gitsha": gitsha}
# Must set this variable to include year, month, day, hours, and minutes.
html_last_updated_fmt = '%Y-%m-%d %H:%M'

Project details


Release history Release notifications | RSS feed

This version

1.2.3

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openstackdocstheme-1.2.3.tar.gz (649.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openstackdocstheme-1.2.3-py2.py3-none-any.whl (299.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file openstackdocstheme-1.2.3.tar.gz.

File metadata

File hashes

Hashes for openstackdocstheme-1.2.3.tar.gz
Algorithm Hash digest
SHA256 e15bddc9629fa817f6c9da28ef430110e703fe6221a68001b41d0fb96073b492
MD5 4dcf5f8f90f92dba0e0de4fa656268ab
BLAKE2b-256 a9dd64881f05950939482316c87e6bf18c055cdc4a0ff5e4c617c45a9da63a28

See more details on using hashes here.

File details

Details for the file openstackdocstheme-1.2.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for openstackdocstheme-1.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a30a3b2dfd0ee0729edb9838d7523ca9a0ac1bd67cd68fe76d5db33a8850b5f1
MD5 da890640f0d541fcca5569d2a2bded00
BLAKE2b-256 365e141fc3f79b596eff06d2af62bef5d4c451040838e2371371918040878cf2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page