Open gbroques opened 6 years ago
Same here. Thanks for reporting.
Did a little digging. The issue is it's failing to import my song_match
module. The WARNING
it gives is a critical failure. This is probably because the module is not in sys.path
.
I have the following in conf.py
though:
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('../'))
So I'm still confused. For now, I found a workaround.
I added the following to my conf.py
, as this is what @goerz does in the QNET conf.py.
# -- Generate API documentation ------------------------------------------------
def run_apidoc(_):
"""Generage API documentation"""
import better_apidoc
better_apidoc.main(
['better-apidoc', '-t', './_templates', '--force', '--no-toc',
'--separate', '-o', './song_match', '../song_mtach'])
def setup(app):
app.connect('builder-inited', run_apidoc)
Works like a charm!
VERSION: better-apidoc 0.1.4
Whenever I run:
better-apidoc -t ./_templates -f ../song_match -o song_match
I get the following error:
Not sure what I'm doing wrong.
I run the command within
./docs
. Here's a snippet of my package structure.Whenever I try
sphinx-apidoc -f ../song_match -o song_match
it works fine.Any help?