Skip to main content

Agoraplex Sphinx Theme

About

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.

Release files for agoraplex.themes.sphinx 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agoraplex.themes.sphinx 0.1.3
File Size Uploaded
agoraplex.themes.sphinx-0.1.3.tar.gz 659.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agoraplex.themes.sphinx 0.1.3
File Interpreter ABI Platform
agoraplex.themes.sphinx-0.1.3-py2.7.egg Legacy Egg format - - Details

Total release size: 1.3 MB

Release files / agoraplex.themes.sphinx-0.1.3.tar.gz

Download URL agoraplex.themes.sphinx-0.1.3.tar.gz
Size 659.3 kB
Tags Source
SHA-256 checksum
How to use checksums
236f4636fa0a08e0f46298889bb9218cf1e958337e041613a7e556ba4e35873d
BLAKE2b-256 checksum
How to use checksums
3074dbae29a19a9b383f1f2f61ac830f6525a709b99c6eea2c5eab6b776505fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / agoraplex.themes.sphinx-0.1.3-py2.7.egg

Download URL agoraplex.themes.sphinx-0.1.3-py2.7.egg
Size 658.4 kB
Tags Egg
SHA-256 checksum
How to use checksums
44e75041001b9e13b821f22f7054a4c7286ebe0a909fb02a94aa4cd2fb71102f
BLAKE2b-256 checksum
How to use checksums
859777e2f147385266d5a409189b7b807556d453181e225638367fe63415b664
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page