Commit b8dc44c6 by Александр

commands for viewing and compiling docs

parent 8d40b19c
......@@ -250,3 +250,24 @@ task :autodeploy_properties do
file.puts("UPSTREAM_REVISION=#{COMMIT}")
end
end
desc "Invoke sphinx 'make build' to generate docs."
task :builddocs do
Dir.chdir('docs') do
sh('make html')
end
end
desc "Show doc in browser (mac only for now) TODO add linux support"
task :showdocs do
Dir.chdir('docs/build/html') do
sh('open index.html')
end
end
desc "Build docs and show them in browser"
task :doc => :builddocs do
Dir.chdir('docs/build/html') do
sh('open index.html')
end
end
\ No newline at end of file
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