diff options
| author | mo <mo@mokhan.ca> | 2018-09-24 15:09:30 -0600 |
|---|---|---|
| committer | mo <mo@mokhan.ca> | 2018-09-24 15:09:30 -0600 |
| commit | be0f28443d8cdc37d78671edb2dfd205abd0ba84 (patch) | |
| tree | 1e17bb0f4a79bae2b9712dad555aa3bea4f2e119 /lib | |
| parent | 97f9510e8ac31dddaf176b19578cb2a7b7cb4f44 (diff) | |
use jekyll to generate API documentation.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/tasks/doc.rake | 19 |
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 |
