Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
Improve design of warning output
Browse files Browse the repository at this point in the history
  • Loading branch information
KrauseFx committed Aug 25, 2016
1 parent 32f85ac commit cb05fb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "yaml"

# Make sure no page got removed
if git.diff_for_file("mkdocs.yml")
warn("mkdocs.yml was modified - make sure no modification was made by mistake")
warn("<code>mkdocs.yml</code> was modified - make sure no modification was made by mistake")

patch = git.diff_for_file("mkdocs.yml").patch

Expand All @@ -13,7 +13,7 @@ if git.diff_for_file("mkdocs.yml")
lines.each do |current_line|
if current_line.start_with?("-")
page_name = current_line.match(/\-.*\- (.*)/)[1]
warn("It seems like the page '#{page_name}' got removed from mkdocs.yml, we don't want to remove any public links. Instead please add a redirect to the new page")
warn("It seems like the page <code>#{page_name}</code> got removed from mkdocs.yml, we don't want to remove any public links. Instead please add a redirect to the new page.")
end
end
end

0 comments on commit cb05fb8

Please sign in to comment.