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.1-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for orangeqs_sphinx_extensions-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f688f837206e400c0b1c72097c2bdd81c3117b842b9f7c8a8de04d6e32d48f32
MD5 c628825418ce97296548157e683c1773
BLAKE2b-256 7e40a83de9c6cd9593444a254dc36145f1e1d57783970fb612d7bc2926d25fbc

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