summaryrefslogtreecommitdiff
path: root/docs/doc_conventions.rst
diff options
context:
space:
mode:
authorkotfu <kotfu@kotfu.net>2020-01-15 22:40:25 -0700
committerkotfu <kotfu@kotfu.net>2020-01-15 22:40:25 -0700
commite7a4505d10dc6ed6e4bd34fb017589fba4d0b39c (patch)
tree8e3ad6aeddbefeae09cd7fcaf9c519fc573229ad /docs/doc_conventions.rst
parent9a899dcad35335104ba3faf112f954874f13ac3b (diff)
downloadcmd2-git-e7a4505d10dc6ed6e4bd34fb017589fba4d0b39c.tar.gz
Clarify comment style for module data members and class attributes
Diffstat (limited to 'docs/doc_conventions.rst')
-rw-r--r--docs/doc_conventions.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/doc_conventions.rst b/docs/doc_conventions.rst
index e577fd50..0b44f096 100644
--- a/docs/doc_conventions.rst
+++ b/docs/doc_conventions.rst
@@ -153,6 +153,12 @@ have chosen to not use code as the source of instance attribute documentation.
Instead, it is added manually to the documentation files in ``cmd2/docs/api``.
See ``cmd2/docs/api/cmd.rst`` to see how to add documentation for an attribute.
+For module data members and class attributes, the ``autodoc`` extension allows
+documentation in a comment with special formatting (using a #: to start the
+comment instead of just #), or in a docstring after the definition. This project
+has standardized on the docstring after the definition approach. Do not use the
+specially formatted comment approach.
+
Links to API Reference
----------------------