Rakefile in goodcheck-2.4.1 vs Rakefile in goodcheck-2.4.2

- old
+ new

@@ -12,5 +12,25 @@ namespace :docker do task :build do sh 'docker', 'build', '-t', 'sider/goodcheck:dev', '.' end end + +namespace :docs do + desc "Install dependencies for the documentation website" + task :install_deps do + on_docs_dir do + sh "yarn install" + end + end + + desc "Build the documentation website" + task :build => [:install_deps] do + on_docs_dir do + sh "yarn run build" + end + end + + def on_docs_dir(&block) + Dir.chdir "docusaurus/website", &block + end +end