I'm currently using Sphinx (first time using it) to build the docs for my modules and I have some classes which have some class variables that are initialized with a default value.
For ex:
class ConfigSettings(object):
"""Class that manages a config file
"""
#: Contains the path to the config file (root dir of module)
path = Path(util.getAbsCurrentPath('configfile.ini'))
When building the docs the variable is evaluated and it prints the full path to the file which I don't want (for security reasons). Is there a way to not display the variable value but maybe only the annotation using Sphinx?
I tried various combinations of .. autoclass:
and .. autodata:
but none of them worked so far...
This is what I currently have in my build file:
Config module
----------------------------
.. automodule:: lib.config
:members:
:undoc-members:
:show-inheritance: