Skip to content

Commit

Permalink
sphinx conf.py fix
Browse files Browse the repository at this point in the history
  • Loading branch information
SenadI committed May 19, 2016
1 parent 083712b commit 3a06f29
Show file tree
Hide file tree
Showing 9 changed files with 2 additions and 538 deletions.
17 changes: 2 additions & 15 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#
# All configuration values have a default; values that are commented out
# serve to show the default.
import subprocess
import sys
import os
import shlex
Expand All @@ -22,6 +21,8 @@
extra_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.environ['SPHINX_DOC'] = 'True'
sys.path.append(extra_path)


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

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -358,17 +359,3 @@

# If false, no index is generated.
# epub_use_index = True


def run_apidoc(_):
from sphinx.apidoc import main
module_name = 'sevenbridges'
modules = ['../{module}'.format(module=module_name)]
for module in modules:
cur_dir = os.path.abspath(os.path.dirname(__file__))
output_path = os.path.join(cur_dir, module_name, 'doc')
main(['-e', '-o', output_path, module, '--force'])


def setup(app):
app.connect('builder-inited', run_apidoc)
7 changes: 0 additions & 7 deletions docs/sevenbridges/doc/modules.rst

This file was deleted.

22 changes: 0 additions & 22 deletions docs/sevenbridges/doc/sevenbridges.http.rst

This file was deleted.

54 changes: 0 additions & 54 deletions docs/sevenbridges/doc/sevenbridges.meta.rst

This file was deleted.

142 changes: 0 additions & 142 deletions docs/sevenbridges/doc/sevenbridges.models.compound.rst

This file was deleted.

117 changes: 0 additions & 117 deletions docs/sevenbridges/doc/sevenbridges.models.rst

This file was deleted.

0 comments on commit 3a06f29

Please sign in to comment.