From b8dc44c6cab36645e3d8ff9a9d3793c66f5c1ccc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=80?= Date: Fri, 2 Nov 2012 17:17:12 +0200 Subject: [PATCH] commands for viewing and compiling docs --- rakefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/rakefile b/rakefile index 90cd5fe87f..30716ca365 100644 --- a/rakefile +++ b/rakefile @@ -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