code: def run_apidoc(_):
      
      import os
      dirname = os.path.dirname(__file__)
      ignore_paths = [os.path.join(dirname, '../../aaf2/model'),]
      # https://github.com/sphinx-doc/sphinx/blob/master/sphinx/ext/apidoc.py
      argv = [
          '--force',
          '--no-toc',
          '--separate',
          '--module-first',
          '--output-dir',
          os.path.join(dirname, 'api'),
          os.path.join(dirname, '../../aaf2'),
       ] + ignore_paths
  
      from sphinx.ext import apidoc
      apidoc.main(argv)
docs: This method is required by the setup method below.