author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Tue, 21 Jul 2009 23:09:27 +0200 | |
branch | stable |
changeset 2413 | b1bea4cab594 |
parent 1977 | 606923dff11b |
child 2612 | c3059d308dc2 |
permissions | -rw-r--r-- |
1977
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
1 |
"""generate list of modules for sphinx doc |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
2 |
|
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
3 |
:organization: Logilab |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
4 |
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2. |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
5 |
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
6 |
:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses |
606923dff11b
big bunch of copyright / docstring update
Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
parents:
1808
diff
changeset
|
7 |
""" |
1693
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
8 |
|
299
4761e0ca406d
[doc] Adds scripts to auto-generate modules list to index and add to the documentation.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff
changeset
|
9 |
import sys |
4761e0ca406d
[doc] Adds scripts to auto-generate modules list to index and add to the documentation.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff
changeset
|
10 |
|
1693
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
11 |
EXCLUDE_DIRS = ('test', 'tests', 'examples', 'data', 'doc', '.hg', 'migration') |
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
12 |
if __name__ == '__main__': |
299
4761e0ca406d
[doc] Adds scripts to auto-generate modules list to index and add to the documentation.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff
changeset
|
13 |
|
1693
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
14 |
from logilab.common.sphinxutils import generate_modules_file |
299
4761e0ca406d
[doc] Adds scripts to auto-generate modules list to index and add to the documentation.
Sandrine Ribeau <sandrine.ribeau@logilab.fr>
parents:
diff
changeset
|
15 |
|
1693
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
16 |
gen = generate_modules_file(sys.argv[1:]) |
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
17 |
gen.set_docdir("cubicweb/doc/book/en") |
49075f57cf2c
use logilab.common.sphinxutils
Emile Anclin <emile.anclin@logilab.fr>
parents:
299
diff
changeset
|
18 |
gen.make(['cubicweb', '/indexer', '/logilab', '/rql', '/yams'], EXCLUDE_DIRS) |