Skip to main content

Sphinx theme and custom extensions used internally by Orange Quantum Systems

Project description

OrangeQS Sphinx Extensions

Common Sphinx theme and extensions used internally by Orange Quantum Systems for building product documentation.

The Sphinx theme is an extension to Pydata Sphinx Theme with adaptations to company branding.

Usage

Theme

  • Add orangeqs-sphinx-extensions to your requirements.
  • Copy the content of conf_default.py to your Sphinx's conf.py file, modifying where needed. In particular, replace PATH_TO_YOUR_REPO by the URL of your Gitlab repository. It should have the format internal/wiki.

Generated API documentation

This package contains a Numpydoc parser for sphinx-autodoc2 taken from this issue comment. To use it, install this package with extra enabled:

pip install orangeqs-sphinx-extensions[autodoc2]

After that, configure autodoc2 in Sphinx conf.py, for example:

extensions = [
    ...,
    "autodoc2",
]
autodoc2_packages = ["../../PACKAGENAME"]
autodoc2_output_dir = "./api_reference"
autodoc2_render_plugin = "myst"
autodoc2_docstring_parser_regexes = [
    (
        ".*",
        "orangeqs.sphinx.autodoc2.numpydoc",
    ),
]

and add api_reference/index to toctree.

For more details on configuration, see documentation of sphinx-autodoc2

License and copyright

This package is licensed under BSD 3-clause license, unless other license and copyright is explicitly specified in the header comment or module docstring of the respective source code file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orangeqs_sphinx_extensions-0.1.2-py3-none-any.whl (35.2 kB view details)

Uploaded Python 3

File details

Details for the file orangeqs_sphinx_extensions-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for orangeqs_sphinx_extensions-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9394ba6b081c6a832fa0432d17fb6e14dc0491512ffde9cbd43f8d0b623729ae
MD5 f647ab92f3c29f6fd1f27f17d7291193
BLAKE2b-256 d11be8ac2b836ce36c295388d9ed5e7c7f1f3db48c5647b008061b7677ef1f2c

See more details on using hashes here.

Supported by

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