Skip to content

Commit

Permalink
Fix docs generation for 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 23, 2023
1 parent cdbc6db commit 098d03f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion support/generate_docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ def sh(*args)
puts
puts version
sh "git", "checkout", "v#{version}"
has_docs = Dir.exist?('docs')

sh "rm", "-f", "Gemfile.lock"
sh "bundle", "install"
sh "bundle", "exec", "rake", "yard:#{version}"

sh "cp", "-R", "docs/#{version}", "site"
sh "rm", "-rf", "docs/#{version}"
sh "git", "restore", "docs"
sh "git", "restore", "docs" if has_docs
sh "git", "restore", "docs-source"
end

Expand Down

0 comments on commit 098d03f

Please sign in to comment.