diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-12-11 01:05:13 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-12-11 03:30:06 +0100 |
commit | 68d97f8b492d1d075ed77a4bab7f178d10570106 (patch) | |
tree | 7a7f28518e4528eb5e5c100291cf25f8e375d272 | |
parent | 7ef1de3973ea694abb7e330dd538a0f3679365fb (diff) | |
download | samba-68d97f8b492d1d075ed77a4bab7f178d10570106.tar.gz samba-68d97f8b492d1d075ed77a4bab7f178d10570106.tar.bz2 samba-68d97f8b492d1d075ed77a4bab7f178d10570106.zip |
talloc: Add ability to generate Python docs using pydoctor.
-rw-r--r-- | lib/talloc/Makefile | 3 | ||||
-rw-r--r-- | lib/talloc/wscript | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/lib/talloc/Makefile b/lib/talloc/Makefile index 5b8220c6cb..95564ebc6d 100644 --- a/lib/talloc/Makefile +++ b/lib/talloc/Makefile @@ -56,6 +56,9 @@ etags: ctags: $(WAF) ctags +pydoctor: + $(WAF) pydoctor + bin/%:: FORCE $(WAF) --targets=`basename $@` FORCE: diff --git a/lib/talloc/wscript b/lib/talloc/wscript index 49eac6e6e6..b4cb84bbd8 100644 --- a/lib/talloc/wscript +++ b/lib/talloc/wscript @@ -141,3 +141,10 @@ def reconfigure(ctx): '''reconfigure if config scripts have changed''' import samba_utils samba_utils.reconfigure(ctx) + + +def pydoctor(ctx): + '''build python apidocs''' + cmd='PYTHONPATH=bin/python pydoctor --project-name=talloc --project-url=http://talloc.samba.org/ --make-html --docformat=restructuredtext --introspect-c-modules --add-module bin/python/talloc.*' + print("Running: %s" % cmd) + os.system(cmd) |