Commit 9de351b2 by Vicent Marti

Move documentation generation to the Waf system

The new command is './waf doxygen'

Signed-off-by: Vicent Marti <tanoku@gmail.com>
parent 635cacc6
desc "Build and Run Tests"
task :build do
`./waf clean`
`./waf clean-tests`
`./waf configure`
`./waf build`
`./waf test`
end
desc "Build docs"
task :docs do
puts "Generating Doxygen docs"
`doxygen api.doxygen`
`git stash`
`git checkout gh-pages`
`cp -Rf apidocs/html/* .`
`git add .`
`git commit -am 'generated docs'`
`git push origin gh-pages`
`git checkout master`
end
......@@ -181,6 +181,19 @@ def test(bld):
from waflib import Options
Options.commands = ['build-tests', 'run-tests'] + Options.commands
class _build_doc(Context):
cmd = 'doxygen'
fun = 'build_docs'
def build_docs(ctx):
ctx.exec_command("doxygen api.doxygen")
ctx.exec_command("git stash")
ctx.exec_command("git checkout gh-pages")
ctx.exec_command("cp -Rf apidocs/html/* .")
ctx.exec_command("git add .")
ctx.exec_command("git commit -am 'generated docs'")
ctx.exec_command("git push origin gh-pages")
ctx.exec_command("git checkout master")
class _run_tests(Context):
cmd = 'run-tests'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment