A library of Sphinx extensions for documenting Cylc projects.
Installation
Install all extensions (but not dependencies):
$ pip install cylc-sphinx-extensions
OR all extensions + dependencies for specified extension(s) by name:
$ pip install cylc-sphinx-extensions.git[cylc_lang]
OR all extensions + dependencies for all extensions:
$ pip install cylc-sphinx-extensions.git[all]
Note the minicylc extension requires graphviz:
# install graphviz from your package manager e.g: $ sudo apt-get install -y graphviz
Usage
To use an extension register it in your project’s conf.py e.g:
extension = [
'cylc.sphinx_ext.cylc_lang'
]
Some of these extensions are “auto-loading” and do not require any extra steps to activate.
If the html_static_path configuration is set in your conf.py you will need to move this into a setup function, otherwise extensions cannot append to this path to add their own static resources e.g:
def setup(app):
app.config.html_static_path.append('_static')
Development
Fork and clone https://github.com/cylc/cylc-sphinx-extensions.git.
Extensions are auto-documented from their module docstrings.
Build documentation by running:
$ make clean <format> # e.g. make html slides
This documentation build serves as a simple test battery (warnings will cause it to fail), for everything else there’s pytest:
$ pytest
For code linting:
$ pycodestyle . # python $ eslint cylc/ # javascript
Metadata
Release files for cylc-sphinx-extensions 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cylc-sphinx-extensions-1.1.0.tar.gz | 29.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cylc_sphinx_extensions-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.7 kB
Release files / cylc-sphinx-extensions-1.1.0.tar.gz
| Download URL | cylc-sphinx-extensions-1.1.0.tar.gz |
|---|---|
| Size | 29.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b4027b709e57d2b66f54c5c6925430465160f56b21add813e14e2957ae8aa7c3
|
|
BLAKE2b-256 checksum How to use checksums |
44a23bf21828ff948aa6f463478f567abaa945ae2829843f07aca5cbaf0d19f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.0
|
Release files / cylc_sphinx_extensions-1.1.0-py3-none-any.whl
| Download URL | cylc_sphinx_extensions-1.1.0-py3-none-any.whl |
|---|---|
| Size | 57.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9ba2b49321140a07357ccda7af647f43fa595f2310960536528a424ea78d9c3
|
|
BLAKE2b-256 checksum How to use checksums |
94ea0ef5ebf69660741c4387fe0a9f41dce77fe290090219638e56f2be48c25c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.7.0
|