Skip to content

Commit

Permalink
Changes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
Onager committed Sep 26, 2018
1 parent 43de461 commit d0e958a
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,12 +404,10 @@ def apply(self):
self.traverse(self.document)



def RunSphinxAPIDoc(_):
"""Runs sphinx-apidoc to auto-generate documentation."""
# sys.path.append(os.path.join(os.path.dirname(__file__)))
current_directory = os.path.abspath(os.path.dirname(__file__))
module = os.path.join(current_directory,"..","plaso")
module = os.path.join(current_directory, '..', 'plaso')
api_directory = os.path.join(current_directory, 'sources', 'api')
apidoc.main(['-o', api_directory, module, '--force'])

Expand All @@ -418,9 +416,10 @@ def setup(app):
"""Called at Sphinx initialization."""
# Triggers sphinx-apidoc to generate API documentation.
app.connect('builder-inited', RunSphinxAPIDoc)
app.add_config_value('recommonmark_config', {
'enable_auto_doc_ref': False,
}, True)
app.add_config_value(
'recommonmark_config', {
'enable_auto_doc_ref': False},
True)

app.add_transform(AutoStructify)
app.add_transform(ProcessLink)

0 comments on commit d0e958a

Please sign in to comment.