doc/tools/generate_modules.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Fri, 15 May 2009 14:00:43 +0200
branchstable
changeset 1828 e9e8beb06f01
parent 1808 aa09e20dd8c0
child 1977 606923dff11b
permissions -rw-r--r--
[treeview] really fix #343232

"""generate list of modules for sphinx doc"""

import sys

EXCLUDE_DIRS = ('test', 'tests', 'examples', 'data', 'doc', '.hg', 'migration')
if __name__ == '__main__':

    from logilab.common.sphinxutils import generate_modules_file

    gen = generate_modules_file(sys.argv[1:])
    gen.set_docdir("cubicweb/doc/book/en")
    gen.make(['cubicweb', '/indexer', '/logilab', '/rql', '/yams'], EXCLUDE_DIRS)