Skip to main content

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

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.1.0.tar.gz (29.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cylc_sphinx_extensions-1.1.0-py3-none-any.whl (57.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: cylc-sphinx-extensions-1.1.0.tar.gz
  • Upload date:
  • Size: 29.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for cylc-sphinx-extensions-1.1.0.tar.gz
Algorithm Hash digest
SHA256 b4027b709e57d2b66f54c5c6925430465160f56b21add813e14e2957ae8aa7c3
MD5 8312a73f46353dd2e6aa81e6376e9290
BLAKE2b-256 44a23bf21828ff948aa6f463478f567abaa945ae2829843f07aca5cbaf0d19f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: cylc_sphinx_extensions-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 57.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for cylc_sphinx_extensions-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9ba2b49321140a07357ccda7af647f43fa595f2310960536528a424ea78d9c3
MD5 5d68d051c3ae15f4035a174ff764dc10
BLAKE2b-256 94ea0ef5ebf69660741c4387fe0a9f41dce77fe290090219638e56f2be48c25c

See more details on using hashes here.

Release history Release notifications | RSS feed

1.4.3

2 files

1.4.2

2 files

1.4.1

2 files

1.4.0

2 files

1.3.4

2 files

1.3.3

2 files

1.3.2

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

This release

1.1.0 This release

2 files

1.0.0

2 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