1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-25 17:57:42 +03:00

talloc: Add ability to generate Python docs using pydoctor.

This commit is contained in:
Jelmer Vernooij 2010-12-11 01:05:13 +01:00
parent 7ef1de3973
commit 68d97f8b49
2 changed files with 10 additions and 0 deletions

View File

@ -56,6 +56,9 @@ etags:
ctags:
$(WAF) ctags
pydoctor:
$(WAF) pydoctor
bin/%:: FORCE
$(WAF) --targets=`basename $@`
FORCE:

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