Skip to content

Commit 098d03f

Browse files
committed
Fix docs generation for 1.2.0
1 parent cdbc6db commit 098d03f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

support/generate_docs.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,15 @@ def sh(*args)
2121
puts
2222
puts version
2323
sh "git", "checkout", "v#{version}"
24+
has_docs = Dir.exist?('docs')
2425

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

2930
sh "cp", "-R", "docs/#{version}", "site"
3031
sh "rm", "-rf", "docs/#{version}"
31-
sh "git", "restore", "docs"
32+
sh "git", "restore", "docs" if has_docs
3233
sh "git", "restore", "docs-source"
3334
end
3435

0 commit comments

Comments
 (0)