Skip to main content

Chalice route reStructuredText autodoc directive for docutils/Sphinx.

Project description

Chalicedoc makes documenting Chalice applications easier.

This module adds a “chalice” directive for reStructuredText, which can be used by Sphinx/docutils to autogenerate documentation of your chalice routes using the docstrings in your Chalice app.

Usage (Sphinx)

Usage is simple. First, you must include the chalicedoc module in your extensions list in conf.py:

extensions = [
    ...,
    'chalicedoc',
]

Next, within your .rst source, use the “chalice” directive to scan your app for docstrings:

.. chalice: path/to/chalice/project

This will product output as follows:

  1. The title will be adapted from the chalice app_name

  2. The docstring of your module will be included as a summary

  3. For each route:

  1. The path will be added as a section title

  2. The method will be added as a section subtitle

  3. The docstring of the corresponding function will be used as the section content

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

chalicedoc-0.1.tar.gz (11.4 kB view hashes)

Uploaded Source

Built Distribution

chalicedoc-0.1-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded Python 2 Python 3

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