summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormo <mo@mokhan.ca>2018-09-24 15:09:30 -0600
committermo <mo@mokhan.ca>2018-09-24 15:09:30 -0600
commitbe0f28443d8cdc37d78671edb2dfd205abd0ba84 (patch)
tree1e17bb0f4a79bae2b9712dad555aa3bea4f2e119 /lib
parent97f9510e8ac31dddaf176b19578cb2a7b7cb4f44 (diff)
use jekyll to generate API documentation.
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/doc.rake19
1 files changed, 19 insertions, 0 deletions
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