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'sconf.py
file, modifying where needed. In particular, replacePATH_TO_YOUR_REPO
by the URL of your Gitlab repository. It should have the formatinternal/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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file orangeqs_sphinx_extensions-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: orangeqs_sphinx_extensions-0.1.0-py3-none-any.whl
- Upload date:
- Size: 34.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbf909744977e505ccf50286e5feff73edf2f48d5d542842d8633bde474c8169 |
|
MD5 | 0d1415ef2e36060fbb3bb3d5a83f92ed |
|
BLAKE2b-256 | 1248e3c421419ebf688a18bf3f15c148810c95570021e4c70550b5395262b98c |