Skip to content
This repository has been archived by the owner on Jan 25, 2019. It is now read-only.

Commit

Permalink
Make build escape braces (instead of upstream).
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Jun 23, 2015
1 parent dedde15 commit 23548a6
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Rakefile
Expand Up @@ -63,8 +63,22 @@ task :submodule_update do
end
end

desc "Escape double braces in upstream markdown sources"
task :escape_braces do
file_names = [
'_resources/web-platform-tests/docs/lint-tool.md',
'_resources/web-platform-tests/docs/test-format-guidelines.md',
]
file_names.each do |file_name|
file_contents = File.read(file_name)
file_contents = file_contents.gsub(/{{/, "{% raw %}{{")
file_contents = file_contents.gsub(/}}/, "}}{% endraw %}")
File.open(file_name, "w") {|file| file.puts file_contents }
end
end

desc "Generate the site"
task :build do
task :build => :escape_braces do
jekyll "build"
end

Expand Down

0 comments on commit 23548a6

Please sign in to comment.