Sphinx-Compendia#

A simple API for creating Sphinx domains and structuring arbitrary collections.

Sphinx-Compendia is especially useful for documenting collections, compendiums, catalogs, inventories, compilations, digests and such. You can find a few example use cases below.

We write documentation to communicate efficiently complex topics. Sphinx-Compendia help see how the constituents of a topic are linked together and have a holistic view of what matters.

Sphinx-Compendia helps you leverage the best feature from Sphinx for the compendia that are meaningful for you and your readers.

  • Integrates nicely in your existing workflow. See Defining a compendium.

  • Powerful cross-referencing capabilities, even between separate documentation projects. Keeping links with URLs up-to-date is hard, cross-referencing with Sphinx-Compendia saves you time. See Adding content to a compendium.

  • Compendium-specific indices so you can browse all your documented constituent at a glance, so readers can take a step back and browse your compendia as a whole. See Indexation.

  • Efficient search in built web sites. See Nice search results.

  • Works for any reading medium Sphinx supports, from HTML pages to eReaders.

  • While simple by default, Sphinx-Compendia is also extensible! See Advanced customization.

Sphinx-Compendia is named after its main use-case: compendiums. The word compendia is another plural form of compendium. We use both plural forms in this documentation.

Quickstart#

Example use-cases#

Writing a table-top roleplaying game adventure path as code

We will use this use case in our examples.

we are writing an adventure path in a home brewed world named Fjordlynn for some table top role-playing game. We want to document characters and locations along with some house rules for skills and magic spells.

We will create two compendia: world and rule for respectively documenting character and location, and skill and spell, generating automatically the required directives and cross-referencing roles.

Creating a user experience design system as code

Document a UX topic with personas, markets or other interesting constituents. Cross-reference these from your BDD specifications documented with Sphinx-Gherkin!

Building IT management systems as code

Document teams, services, assets and configuration items for your ITIL (or other IT management framework) documentation.

Cookbook as code

Publish your best meatloaf and kimchi recipes with style. You can even use Sphinx-Compendia for a printed book!

Installation#

Install Sphinx-Compendia:

pip install -U sphinx-compendia

Get started#

Tip

Get started in no time, go to our User manual section!

Indices and references#