Skip to main content

A Sphinx theme for Agoraplex projects, based on the Pylons Sphinx theme

Project description

This repository contains Sphinx themes for Agoraplex projects, based on the Pylons Sphinx Themes, and some helper roles. The following themes exist:

  • agoraplex - the generic Agoraplex documentation theme

Requirements

To rebuild the graphics from the SVG originals (which requires cloning the github repository):

  • rsvg-convert from librsvg

  • pngtopam, pnmremap, pnmcolormap, and pnmtopng from Netpbm

  • icotool from icoutils

Installation

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

  1. Install the package:

    $ pip install agoraplex.themes.sphinx
  2. Edit your conf.py doc configuration file to point to the agoraplex theme:

    import agoraplex.themes.sphinx
    
    # ...
    
    html_theme = 'agoraplex'
    html_theme_path = agoraplex.themes.sphinx.get_html_theme_path()

Helpers

This package adds several Sphinx helper roles (in roles.py). To use these, add agoraplex.themes.sphinx.roles to the extensions list in your conf.py.

The roles are:

  • github: link to a github project:

    :github:`agoraplex/themes`

    The github_url configuration directive defaults to https://github.com/.

  • pypi: link to a project record at PyPi, the Python Package Index:

    :pypi:`agoraplex.themes.sphinx`

    The pypi_url configuration directive defaults to http://pypi.python.org/pypi/

  • wikipedia: link to a Wikipedia article:

    :wikipedia:`Ancient Agora of Athens`

    The wikipedia_url and wikipedia_lang configuration directives default to http://%s.wikipedia.org/wiki/ and en, respectively. Note that the wikipedia_url directive must contain a %s, where the role will insert the wikipedia_lang value.

    The wikipedia role will (mostly) canonicalize an article name by replacing spaces with underscores (_), uppercasing the first letter of the name, and lowercasing the rest. Wikipedia’s own URL rewriting is tolerant of case mismatch, so these simplistic rules work well enough.

Configuration

In addition to the role-related configuration directives, this theme adds the following directives to the set defined by the original Pylons theme:

  • fontsets: a space-separated list of directory names, relative to the font directory (_static/fonts), from which to load a stylesheet.css file containing @font-face directives.

  • font_body, font_header: the ‘base’ names of the fonts to use for body and header text, respectively.

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

agoraplex.themes.sphinx-0.1.2.tar.gz (659.4 kB view details)

Uploaded Source

Built Distribution

agoraplex.themes.sphinx-0.1.2-py2.7.egg (658.6 kB view details)

Uploaded Source

File details

Details for the file agoraplex.themes.sphinx-0.1.2.tar.gz.

File metadata

File hashes

Hashes for agoraplex.themes.sphinx-0.1.2.tar.gz
Algorithm Hash digest
SHA256 832141f41c1786723521ae704cc0205c5348bd9b78810f9f4e5ab383d36447eb
MD5 5af48b3fc21b421716e19d20899b7f06
BLAKE2b-256 8721f78fd74260788ca072e134162b0d5df0e996181c1b228626f4f92e7d7ec9

See more details on using hashes here.

File details

Details for the file agoraplex.themes.sphinx-0.1.2-py2.7.egg.

File metadata

File hashes

Hashes for agoraplex.themes.sphinx-0.1.2-py2.7.egg
Algorithm Hash digest
SHA256 4abf0e6b44e3f4307c4dfe1453bc9708c610f6f48df05493907e9f0a7d4bfba4
MD5 1731416b22c82714450502ff8d6a177d
BLAKE2b-256 e91c33f2e35a24369d5db9fa3ec5728c526e36184298de49fbc3360002b642e8

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