Skip to content

Commit

Permalink
removes generate_apidocs in docs/conf.py which creates WARNING: dupli…
Browse files Browse the repository at this point in the history
…cate object description (#57)
  • Loading branch information
mxochicale committed Jun 21, 2023
1 parent cd01d6e commit ba49e6d
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,6 @@
html_static_path = [static_folder]


def generate_apidocs(*args):
"""Generate API docs automatically by trawling the available modules"""

global working_dir, module_path
output_path = working_dir
apidoc_command_path = 'sphinx-apidoc'
if hasattr(sys, 'real_prefix'): # called from a virtualenv
apidoc_command_path = os.path.join(sys.prefix, 'bin', 'sphinx-apidoc')
apidoc_command_path = os.path.abspath(apidoc_command_path)
subprocess.check_call(
[apidoc_command_path, '--force', '--separate'] +
['-o', output_path, module_path] +
[os.path.join(root_dir_abs, pattern) for pattern in exclude_patterns])


def setup(app):
# Hook to allow for automatic generation of API docs
# before doc deployment begins.
app.connect('builder-inited', generate_apidocs)


# -- General configuration ------------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down

0 comments on commit ba49e6d

Please sign in to comment.