doc/tools/generate_modules.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Tue, 26 May 2009 09:03:24 +0200
changeset 1933 f40ee76ecdf1
parent 1808 aa09e20dd8c0
child 1977 606923dff11b
permissions -rw-r--r--
[facet][RangeFacet] submit facet form when the user stops sliding

"""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)