Cylc Sphinx Extensions
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
Copyright and Terms of Use
Copyright (C) 2008-2021 NIWA & British Crown (Met Office) & Contributors.
Cylc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Cylc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with Cylc. If not, see GNU licenses http://www.gnu.org/licenses/.
Metadata
Release files for cylc-sphinx-extensions 1.3.1
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.3.1.tar.gz | 43.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cylc_sphinx_extensions-1.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 100.1 kB
Release files / cylc-sphinx-extensions-1.3.1.tar.gz
| Download URL | cylc-sphinx-extensions-1.3.1.tar.gz |
|---|---|
| Size | 43.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d00ce148b6ac57b11a9e3824a0b8abd424b9b40577c739e7af8e00735458b087
|
|
BLAKE2b-256 checksum How to use checksums |
a145ac6043bfe2ba8bdd45fd6760473876671dc753ae2d81e48c9408d7101954
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
|
Release files / cylc_sphinx_extensions-1.3.1-py3-none-any.whl
| Download URL | cylc_sphinx_extensions-1.3.1-py3-none-any.whl |
|---|---|
| Size | 57.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b19466bff0d86c063c946320cf84fd3abbeaa1b4137274012e367b2058405b9
|
|
BLAKE2b-256 checksum How to use checksums |
c59e25b4c49a5765f2e0a187d5cd3934872fc5dd00ebcef6a32bd2457dba6e21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.11
|