Skip to content

Commit

Permalink
Fix API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
eriknyquist committed Jul 29, 2018
1 parent 2c7d7e5 commit f392457
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
2 changes: 2 additions & 0 deletions doc/Makefile
Expand Up @@ -4,6 +4,7 @@
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXAPIDOC = sphinx-apidoc
PAPER =
BUILDDIR = build

Expand Down Expand Up @@ -51,6 +52,7 @@ clean:

.PHONY: html
html:
$(SPHINXAPIDOC) -o source ../tones
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
Expand Down
19 changes: 0 additions & 19 deletions doc/source/conf.py
Expand Up @@ -21,25 +21,6 @@
import sys
import sphinx_rtd_theme

def run_apidoc(_):
argv = [
"-o", "source",
"../tones"
]

try:
# Sphinx 1.7+
from sphinx.ext import apidoc
apidoc.main(argv)
except ImportError:
# Sphinx 1.6 (and earlier)
from sphinx import apidoc
argv.insert(0, apidoc.__file__)
apidoc.main(argv)

def setup(app):
app.connect('builder-inited', run_apidoc)

sys.path.insert(0, os.path.abspath('../..'))

# -- General configuration ------------------------------------------------
Expand Down

0 comments on commit f392457

Please sign in to comment.