Skip to main content

Pylons Sphinx themes for documentation styling.

Project description

Pylons Sphinx Themes

This repository is a Python package that contains Sphinx themes for Pylons related projects. This project is based on Pylons Sphinx Theme (singular), but uses a package implementation instead of git submodules and manual steps.

To use a theme in your Sphinx documentation, follow this guide.

Edit your Sphinx documentation’s conf.py

  1. Near the top, add the following.:

    import pylons_sphinx_themes
  2. Activate the theme:

    html_theme = 'pyramid'
    html_theme_path = pylons_sphinx_themes.get_html_themes_path()
  3. If you were previously using the git submodule method to use the Pylons theme, then comment or delete the block of code under the following statement:

    # Add and use Pylons theme
    if 'sphinx-build' in ' '.join(sys.argv):  # protect against dumb importers
    ...
  4. (Optional) Set a canonical root URL:

    html_theme_options = dict(
        canonical_url='http://the_root_domain/latest/docs/'
    )

The URL points to the root of the documentation, and requires a trailing slash.

The following themes exist.

  • pylons - the generic Pylons Project documentation theme

  • pyramid - the specific Pyramid documentation theme

  • pylonsfw - the specific Pylons Framework documentation theme

0.1 (2015-04-14)

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

pylons-sphinx-themes-0.1.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file pylons-sphinx-themes-0.1.tar.gz.

File metadata

File hashes

Hashes for pylons-sphinx-themes-0.1.tar.gz
Algorithm Hash digest
SHA256 24034f4e578b9d9cd06846995dbcbd286319a166f0c2e7f323cd21e5fd34aacc
MD5 202e204bd68834c54b686c57696ed201
BLAKE2b-256 8030bb58580eb3bb04f13ffe07145ae9f0cad01dce44ce9fb4e21db588193c91

See more details on using hashes here.

Supported by

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