Skip to main content

sphinx-config-options

sphinx-config-options adds functionality to Sphinx that allows documenting configuration options with rich metadata and cross-referencing capabilities.

Basic usage

Documenting configuration options

Add configuration options to your documentation using the config:option directive:

.. config:option:: database.host
   :shortdesc: Database hostname or IP address
   :type: string
   :default: localhost
   :required: true

   The hostname or IP address of the database server to connect to.

Advanced option fields

The extension supports various metadata fields:

.. config:option:: cache.enabled
   :shortdesc: Enable or disable caching
   :type: boolean
   :default: false
   :scope: server
   :liveupdate: true
   :condition: Only available with premium license

   Controls whether the application uses caching to improve performance.

Cross-referencing options

Reference configuration options from anywhere in your documentation:

See the :config:option:`database.host` option for connection details.

Automatic index generation

All documented configuration options are automatically added to a searchable index available at {ref}config-options.

Project setup

sphinx-config-options is published on PyPI and can be installed with:

pip install sphinx-config-options

After adding sphinx-config-options to your Python project, update your Sphinx's conf.py file to include sphinx-config-options as one of its extensions:

extensions = [
    "sphinx_config_options"
]

Supported option fields

The extension supports the following metadata fields for configuration options:

  • shortdesc (required): Brief description of the option
  • type: Data type (string, boolean, integer, etc.)
  • default: Default value
  • defaultdesc: Description of the default value
  • initialvaluedesc: Description of the initial value
  • liveupdate: Whether the option can be changed at runtime
  • condition: Conditions under which the option is available
  • readonly: Whether the option is read-only
  • resource: Resource associated with the option
  • managed: Whether the option is managed by the system
  • required: Whether the option is required
  • scope: Scope of the option (server, client, etc.)

For more examples, see: https://linuxcontainers.org/lxd/docs/latest/networks/config_options_cheat_sheet.

Community and support

You can report any issues or bugs on the project's GitHub repository.

sphinx-config-options is covered by the Ubuntu Code of Conduct.

License and copyright

sphinx-config-options is released under the GPL-3.0 license.

© 2025 Canonical Ltd.

Metadata

Release files for sphinx-config-options 0.1.1

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

Source distribution (sdist)

Source distribution for sphinx-config-options 0.1.1
File Size Uploaded Provenance Actions
sphinx_config_options-0.1.1.tar.gz 100.3 kB With provenance Details for sphinx_config_options-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-config-options 0.1.1
File Interpreter ABI Platform Actions
sphinx_config_options-0.1.1-py3-none-any.whl Python 3 none any Details for sphinx_config_options-0.1.1-py3-none-any.whl

Total release size: 123.6 kB

Release files / sphinx_config_options-0.1.1.tar.gz

Download URL sphinx_config_options-0.1.1.tar.gz
Size 100.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6812f77e17517389bde9ff9fbe0643474f9d3d41a22598349f631904dc77b705
BLAKE2b-256 checksum
How to use checksums
40df8f7588de165303c5919b1d1e48e02e9357ea0c32655a3aab47aa324c592c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.

Transparency log

Release files / sphinx_config_options-0.1.1-py3-none-any.whl

Download URL sphinx_config_options-0.1.1-py3-none-any.whl
Size 23.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f56212a24b59ed0d6ae79fcf66fc6b6030d2e220b718acbff4929e115de74e07
BLAKE2b-256 checksum
How to use checksums
9f36972ae10a6606116c97b70051bbb3943d2146af6ab0fc23f8c9002f468407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.

Transparency log

Security for sphinx-config-options 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sphinx_config_options-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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