Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cylc-sphinx-extensions-1.4.3.tar.gz (32.0 kB view details)

Uploaded Source

Built Distribution

cylc_sphinx_extensions-1.4.3-py3-none-any.whl (60.5 kB view details)

Uploaded Python 3

File details

Details for the file cylc-sphinx-extensions-1.4.3.tar.gz.

File metadata

File hashes

Hashes for cylc-sphinx-extensions-1.4.3.tar.gz
Algorithm Hash digest
SHA256 663c984c0da25a2a193333742d285718ff0333b65106a3d7e5a077bcd5a0c2b9
MD5 16561fbcfcea21fe62cb803e746ad49d
BLAKE2b-256 4268502bcc70e41f071d7e91ffe9f95277d5d919b5faaf206bdcea3f98c4ba65

See more details on using hashes here.

File details

Details for the file cylc_sphinx_extensions-1.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for cylc_sphinx_extensions-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c69e86293725b1379dbb25509c247b91191c88d24011370320c552a36e3a38f2
MD5 d806fbd287a723179b7dca94066e8021
BLAKE2b-256 59c45e3e2414941f1fbae2d062f6fce00940636ace250288e532cba8e826ec35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page