This Sphinx autodoc extension documents Cloudformation YAML files from comments and descriptions.
It looks for documentation descriptions and comments delimiter(default: # my comment
) and
adds it with all further comments as reST documentation till it finds end of comment.
It does not support Cloudformation JSON files becuase they do not gracefully handle comments.
Options available to use in your configuration:
- cloudformationyaml_root
Look for cloudformation files relatively to this directory.
DEFAULT: ..
- cloudformationyaml_comment
Comment start character(s).
DEFAULT: #
Issue command:
pip install sphinxcontrib-cloudformationyaml
And add extension in your project's conf.py
:
extensions = ["sphinxcontrib.cloudformationyaml"]
Some title
==========
Documenting single cloudformation file.
.. cloudformationyaml:: some_cloudformation_file.yml