mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
apidoc: read options from SPHINX_APIDOC_OPTIONS envvar if set
If the SPHINX_APIDOC_OPTIONS environment variable exists, read OPTIONS from there, otherwise use the existing default options. This allows some configurability of sphinx-apidoc.
This commit is contained in:
@@ -20,6 +20,9 @@ import optparse
|
||||
from os import path
|
||||
|
||||
# automodule options
|
||||
if 'SPHINX_APIDOC_OPTIONS' in os.environ:
|
||||
OPTIONS = os.environ['SPHINX_APIDOC_OPTIONS'].split(',')
|
||||
else:
|
||||
OPTIONS = [
|
||||
'members',
|
||||
'undoc-members',
|
||||
|
||||
Reference in New Issue
Block a user