Sphinx extensions for documenting Cylc
Project description
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-2020 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/.
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 Distribution
Built Distribution
Hashes for cylc-sphinx-extensions-1.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78fc02c1656daddd528eec8c16d4d184f3d72e2a9cb10c08544f4515ce88c9ad |
|
MD5 | 51342046731d54d064737b9d0a22122b |
|
BLAKE2b-256 | 8be68c2489bee2c9d33fb8aef20fac380b874688b97120720190155549ebc012 |
Hashes for cylc_sphinx_extensions-1.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78bd6493a7a2805a42b0847cbe89bb05fadbfd7291398cbd3b0dd68e3e1d9fb |
|
MD5 | b303c894af0be6f6201c864cfcf721b0 |
|
BLAKE2b-256 | ffec7407ece68253f93f65dd5fea49b61490925ff493e7f153f823243c746909 |