-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRakefile
26 lines (24 loc) · 995 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Rake tasks for updating documentation.
# We use the branch gh-pages as the publishing source on GitHub Pages,
# and the Rake tasks commit to this branch.
#
# When updating gh-pages from master, we use --no-overlay to ensure that deleted files are removed, see:
# https://git-scm.com/docs/git-checkout#Documentation/git-checkout.txt---no-overlay
desc "\
Build documentation with YARD. \
Updates YARD docs based on relevant folders in spec/ and commits the result to the gh-pages branch.\
"
task :yard do
system 'bundle exec yardoc'
system 'git checkout gh-pages'
system 'git add .'
system 'git status'
system 'git commit -m "update yard docs"'
end
# Note that rebuilding with YARD does not delete unused fies.
# For this reason, it's often a good idea delete the output folder before rebuilding, using:
# % rm -r docs/tests
desc "Rebuild YARD docs for the RSpec files in spec."
task :spec_docs do
system 'bundle exec yardoc --template jekyll --format markdown --output docs/tests'
end