talloc: Add ability to generate Python docs using pydoctor.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 11 Dec 2010 00:05:13 +0000 (01:05 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 11 Dec 2010 02:30:06 +0000 (03:30 +0100)
lib/talloc/Makefile
lib/talloc/wscript

index 5b8220c6cb7fc476f57dc9dfb8eac50417343a94..95564ebc6de566b7829e6f2e6a257aacd4ebf0b1 100644 (file)
@@ -56,6 +56,9 @@ etags:
 ctags:
        $(WAF) ctags
 
+pydoctor:
+       $(WAF) pydoctor
+
 bin/%:: FORCE
        $(WAF) --targets=`basename $@`
 FORCE:
index 49eac6e6e6dd8c08b804c07f7dffe4383b9597ca..b4cb84bbd8a000edf94f5a9c38cfa8f6ac2bcd27 100644 (file)
@@ -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)