From be0f28443d8cdc37d78671edb2dfd205abd0ba84 Mon Sep 17 00:00:00 2001 From: mo Date: Mon, 24 Sep 2018 15:09:30 -0600 Subject: use jekyll to generate API documentation. --- lib/tasks/doc.rake | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/tasks/doc.rake (limited to 'lib') diff --git a/lib/tasks/doc.rake b/lib/tasks/doc.rake new file mode 100644 index 0000000..cbf9363 --- /dev/null +++ b/lib/tasks/doc.rake @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +namespace :doc do + desc "Build static pages" + task :build do + sh "jekyll b --config config/jekyll.yml" + end + + desc "Watch and rebuild static pages" + task :watch do + sh "jekyll b --config config/jekyll.yml --watch" + end + + desc "Clean up after Jekyll" + task :clean do + sh "jekyll clean --config config/jekyll.yml" + sh "mkdir public/doc && touch public/doc/.keep" + end +end -- cgit v1.2.3