sphinx-autopackage-script /

Filename Size Date modified Message
1.3 KB
README.rst edited online with Bitbucket
10.0 KB
use absolute path for root (thanks to Jan Marten Simons for the patch)


This script was integrated to Sphinx as Apidoc many years ago. So, everybody should use Apidoc now and not this script.

[Apidoc documentation](http://www.sphinx-doc.org/en/stable/man/sphinx-apidoc.html)


Generate Modules

This script parses a directory tree looking for python modules and packages and creates ReST files appropriately to create code documentation with Sphinx. It also creates a modules index.


Usage: generate_modules.py [options] <package path> [exclude paths, ...]

Note: By default this script will not overwrite already created files.

  -h, --help            show this help message and exit
  -n HEADER, --doc-header=HEADER
                        Documentation Header (default=Project)
  -d DESTDIR, --dest-dir=DESTDIR
                        Output destination directory
  -s SUFFIX, --suffix=SUFFIX
                        module suffix (default=txt)
  -m MAXDEPTH, --maxdepth=MAXDEPTH
                        Maximum depth of submodules to show in the TOC
  -r, --dry-run         Run the script without creating the files
  -f, --force           Overwrite all the files
  -t, --no-toc          Don't create the table of content file