code: 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'])
docs: Runs sphinx-apidoc to auto-generate documentation.