Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upHow to document global variables #46
Comments
kernc
added
the
question
label
Mar 28, 2019
This comment has been minimized.
This comment has been minimized.
|
Yes, you can document public variables by using PEP 224-proposed docstrings for variables, i.e. string literal directly following variable assignment: PTH_PROJ = Path.home()
"""Base directory path"""
COUNT_MAP = {}
"""Some dictionary""" |
kernc
closed this
Mar 28, 2019
kernc
changed the title
Dispaly Global Variables in pdoc
How to document global variables
Mar 29, 2019
This comment has been minimized.
This comment has been minimized.
|
Awesome, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
KyleKing commentedMar 28, 2019
For example, in a
definitions.pyfile, I might have:Is there a way to show these public global variables (
PTH_PROJandCOUNT_MAP) in the generated pdoc documentation?