We're using Sphinx
to format our Python documentation, and cement
to configure our CLIs. Unfortunately, Sphinx
generates a lot of nonsensical output from cement
configurations.
I've been unable to find any Sphinx directive or command line option to ignore the cement configuration that it should not format. We're using Sphinx 2.2.0
, and sphinx-apidoc
with options -f -P -o
.
E.g., Sphinx formats this Python
class BaseController(cement.Controller):
""" Base controller for command line application """
class Meta:
label = 'base'
description = "Command line utilities for managing whole-cell model definitions"
help = "Command line utilities for managing whole-cell model definitions"
arguments = [
(['-v', '--version'], dict(action='version', version=wc_lang.__version__)),
]
into this documentation
The documentation shouldn't show the content of the Meta
class. Can the Python be annotated with Sphinx
directives to accomplish this?