escape $$ in asciidoc when generating api-reference pages

This commit is contained in:
Chao Xu
2015-11-15 14:37:05 -08:00
parent addb77fb30
commit 21d8ad3a36
4 changed files with 11 additions and 8 deletions

View File

@@ -53,6 +53,9 @@ sed -i -e 's|<<any>>|link:definitions.html#_any[any]|g' ./paths.adoc
# change the title of paths.adoc from "paths" to "operations"
sed -i 's|== Paths|== Operations|g' ./paths.adoc
# $$ has special meaning in asciidoc, we need to escape it
sed -i 's|\$\$|+++$$+++|g' ./definitions.adoc
echo -e "=== any\nRepresents an untyped JSON map - see the description of the field for more info about the structure of this object." >> ./definitions.adoc
asciidoctor definitions.adoc