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:
parent
7ef1de3973
commit
68d97f8b49
@ -56,6 +56,9 @@ etags:
|
||||
ctags:
|
||||
$(WAF) ctags
|
||||
|
||||
pydoctor:
|
||||
$(WAF) pydoctor
|
||||
|
||||
bin/%:: FORCE
|
||||
$(WAF) --targets=`basename $@`
|
||||
FORCE:
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user