def apidoc(ctx): """generate API reference documentation""" ctx = BuildContext() # create our own context to have ctx.top_dir basedir = ctx.top_dir doxygen = _find_program(ctx, 'doxygen') doxyfile = '%s/doc/Doxyfile' % ctx.out_dir Logs.pprint('CYAN', 'Generating API documentation') ret = ctx.exec_command('%s %s' % (doxygen, doxyfile)) if ret != 0: raise WafError('Generating API documentation failed')
def hackingdoc(ctx): """generate HACKING documentation""" ctx = BuildContext() # create our own context to have ctx.top_dir Logs.pprint('CYAN', 'Generating HACKING documentation') cmd = _find_rst2html(ctx) hacking_file = os.path.join(ctx.top_dir, 'HACKING') hacking_html_file = os.path.join(ctx.top_dir, 'doc', 'hacking.html') stylesheet = os.path.join(ctx.top_dir, 'doc', 'geany.css') ret = ctx.exec_command('%s -stg --stylesheet=%s %s %s' % ( cmd, stylesheet, hacking_file, hacking_html_file)) if ret != 0: raise WafError('Generating HACKING documentation failed')