Skip to content

Commit

Permalink
chore: Add Rakefile to serve the documentation site
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Sep 13, 2024
1 parent a9a1eda commit fe28cef
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
desc "Serve the documentation site"
task :serve_docs do
begin
Dir.chdir('docs') do
unless system('bundle check')
puts "Bundler is not installed or dependencies are not met. Please run 'bundle install'."
exit 1
end

sh 'bundle exec jekyll s'
end
rescue Errno::ENOENT => e
puts "Directory 'docs' not found: #{e.message}"
exit 1
rescue => e
puts "An error occurred: #{e.message}"
exit 1
end
end

0 comments on commit fe28cef

Please sign in to comment.