Added documentation for valadoc

Signed-off-by: Thomas Nagy <tnagy2pow10@gmail.com>
This commit is contained in:
Oliver Sauder 2012-04-06 12:03:32 +02:00 committed by Thomas Nagy
parent 9c9ea64b26
commit 80f39778d1
1 changed files with 17 additions and 0 deletions

View File

@ -67,6 +67,23 @@ class valadoc(Task.Task):
@feature('valadoc')
def process_valadoc(self):
"""
Generate API documentation from Vala source code with valadoc
doc = bld.new_task_gen (
features = 'valadoc',
output_dir = '../doc/html',
package_name = 'vala-gtk-example',
package_version = '1.0.0',
packages = 'gtk+-2.0',
vapi_dirs = '../vapi',
force = True
)
path = bld.path.find_dir ('../src')
doc.files = path.ant_glob (incl='**/*.vala')
"""
task = self.create_task('valadoc')
if getattr(self, 'output_dir', None):
task.output_dir = self.path.find_or_declare(self.output_dir).abspath()