Skip to main content

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

Metadata

Release files for cylc-sphinx-extensions 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cylc-sphinx-extensions 1.3.3
File Size Uploaded
cylc-sphinx-extensions-1.3.3.tar.gz 30.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cylc-sphinx-extensions 1.3.3
File Interpreter ABI Platform
cylc_sphinx_extensions-1.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 90.2 kB

Release files / cylc-sphinx-extensions-1.3.3.tar.gz

Download URL cylc-sphinx-extensions-1.3.3.tar.gz
Size 30.7 kB
Tags Source
SHA-256 checksum
How to use checksums
97841587f41f0b19a410f1eaeaf2f46a262ec1101153799f09f92d83a6bf6ad4
BLAKE2b-256 checksum
How to use checksums
297400f1230c575dc85f937a945755cd5d8df25855df555324b0ca720ba930f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release files / cylc_sphinx_extensions-1.3.3-py3-none-any.whl

Download URL cylc_sphinx_extensions-1.3.3-py3-none-any.whl
Size 59.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ddb5d501e2e2dba58aec96b05f5a0762aae49739f703f131e7c0ef91542f327
BLAKE2b-256 checksum
How to use checksums
627c0c11429fe559dd3e10159c666881df7adeab97f17dfd1c17c1673cbff2f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

Release history Release notifications | RSS feed

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4.0

2 release files

1.3.4

2 release files

This release

1.3.3 This release

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page