Skip to content

Commit

Permalink
Merge pull request #771 from rubygems/tnir-use-latest-bundler-source-…
Browse files Browse the repository at this point in the history
…for-doc

Update the source of /doc and CoC as per the merger
  • Loading branch information
tnir authored Jul 27, 2022
2 parents f9ade69 + 842c63d commit fa50c89
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/tasks/vendor_files.rake
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,18 @@ end

desc "Pulls in pages maintained in the bundler repo."
task repo_pages: :update_vendor do
Dir.chdir "vendor/bundler" do
Dir.chdir "vendor/rubygems/bundler" do
sh "git reset --hard HEAD"
sh "git checkout origin/master"

source_dir = File.expand_path("../source/", File.dirname(__dir__))
Dir['doc/**/*.md'].each do |file|
file_name = file[0..-4] # Removes .md suffix
to = File.expand_path("../../source/#{file_name}.html.md").downcase
to = File.expand_path("./#{file_name}.html.md", source_dir).downcase
write_file(file, to)
end

write_file("CODE_OF_CONDUCT.md", File.expand_path("../../source/conduct.html.md"))
write_file("../CODE_OF_CONDUCT.md", File.expand_path("./conduct.html.md", source_dir))
end
end

Expand Down
2 changes: 1 addition & 1 deletion source/conduct.html.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bundler Code of Conduct
# RubyGems and Bundler Code of Conduct

## Our Pledge

Expand Down

0 comments on commit fa50c89

Please sign in to comment.