Skip to content

Commit

Permalink
Fix escaped tags for GitHub pages rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
straight-shoota committed Apr 23, 2020
1 parent f86e1c5 commit 588ad44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate-docs.sh
Expand Up @@ -15,7 +15,7 @@ ${CRYSTAL} docs src/docs.cr
echo -e "Copying README.md and TEMPLATE_SYNTAX.md"

# "{{" and "{%"" need to be escaped, otherise Jekyll might interpret the expressions (on Github Pages)
ESCAPE_TEMPLATE='s/{{/{{"{{"}}/g; s/{\%/{{"{%"}}\%/g;'
ESCAPE_TEMPLATE='s/{{/{{"{{"}}/g; s/{\%/{{"{%"}}\/g;'
sed "${ESCAPE_TEMPLATE}" README.md > "${GENERATED_DOCS_DIR}/README.md"
sed "${ESCAPE_TEMPLATE}" TEMPLATE_SYNTAX.md > "${GENERATED_DOCS_DIR}/TEMPLATE_SYNTAX.md"

Expand Down

0 comments on commit 588ad44

Please sign in to comment.