From 2540be24429300e989ff64bc621b87ad6ca9707d Mon Sep 17 00:00:00 2001 From: Julian Arni Date: Tue, 16 Jul 2013 13:45:22 -0400 Subject: [PATCH] Update rake docs to reflect change in folder structure --- docs/Makefile | 7 +++++++ rakelib/docs.rake | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 docs/Makefile diff --git a/docs/Makefile b/docs/Makefile new file mode 100644 index 0000000000..8e5e368266 --- /dev/null +++ b/docs/Makefile @@ -0,0 +1,7 @@ + +.PHONY: html + +html: + @cd $(CURDIR)/data && make html + @cd $(CURDIR)/course_authors && make html + @cd $(CURDIR)/developers && make html diff --git a/rakelib/docs.rake b/rakelib/docs.rake index 9adf7293ff..3d3224cd74 100644 --- a/rakelib/docs.rake +++ b/rakelib/docs.rake @@ -3,6 +3,19 @@ require 'launchy' # --- Develop and public documentation --- desc "Invoke sphinx 'make build' to generate docs." task :builddocs, [:options] do |t, args| + if args.options == 'dev' + path = "docs/developer" + elsif args.options == 'author' + path = "docs/course_authors" + elsif args.options == 'data' + path = "docs/data" + else + path = "docs" + end + + Dir.chdir(path) do + sh('make html') + end path = "docs" Dir.chdir(path) do @@ -13,6 +26,15 @@ end desc "Show docs in browser (mac and ubuntu)." task :showdocs, [:options] do |t, args| path = "docs" + if args.options == 'dev' + path = "docs/developer" + elsif args.options == 'author' + path = "docs/course_authors" + elsif args.options == 'data' + path = "docs/data" + else + path = "docs" + end Launchy.open("#{path}/build/html/index.html") end