doc/tools/generate_modules.py
author sylvain.thenault@logilab.fr
Thu, 14 May 2009 12:48:11 +0200
changeset 1808 aa09e20dd8c0
parent 1693 49075f57cf2c
parent 1802 d628defebc17
child 1977 606923dff11b
permissions -rw-r--r--
backport tls-sprint

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