-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# task default: %w[build] | ||
|
||
task :default do | ||
system "rake --tasks" | ||
end | ||
|
||
namespace :pipenv do | ||
desc "Build docs using pipenv" | ||
task :build do | ||
exec 'WORKDIR=/doc PIPENV_VENV_IN_PROJECT=1 pipenv run make html' | ||
end | ||
|
||
desc "Install pipenv dependencies" | ||
task :install do | ||
exec 'WORKDIR=/doc PIPENV_VENV_IN_PROJECT=1 pipenv install' | ||
end | ||
end | ||
|
||
namespace :docker do | ||
|
||
desc "Build docs using docker" | ||
task :build do | ||
exec 'docker run --rm -i -t -v "${PWD}:/doc" -u "$(id -u):$(id -g)" ohiosupercomputer/docker-sphinx make html' | ||
end | ||
end | ||
|
||
desc "Build docs using pipenv (shortcut)" | ||
task :build => ["pipenv:build"] |