mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
To control the visibility of variables, ModuleDocumenter have to load docstring of them on `get_object_members()` phase. This reimplements it and `get_module_members()` helper to fetch docstring on earlier phase (as ClassDocumenter does).
16 lines
282 B
Python
16 lines
282 B
Python
def private_function(name):
|
|
"""private_function is a docstring().
|
|
|
|
:meta private:
|
|
"""
|
|
|
|
def _public_function(name):
|
|
"""public_function is a docstring().
|
|
|
|
:meta public:
|
|
"""
|
|
|
|
|
|
PRIVATE_CONSTANT = None #: :meta private:
|
|
_PUBLIC_CONSTANT = None #: :meta public:
|