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

Commit cb05fb8

Browse files
committed
Improve design of warning output
1 parent 32f85ac commit cb05fb8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Dangerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require "yaml"
22

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

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

@@ -13,7 +13,7 @@ if git.diff_for_file("mkdocs.yml")
1313
lines.each do |current_line|
1414
if current_line.start_with?("-")
1515
page_name = current_line.match(/\-.*\- (.*)/)[1]
16-
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")
16+
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.")
1717
end
1818
end
1919
end

0 commit comments

Comments
 (0)