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