docgen: mangling using _. instead of @@ to avoid issue (#14454)

This commit is contained in:
Timothee Cour 2020-05-26 01:08:35 -07:00 • committed by GitHub
commit 38cb277653
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 33 additions and 21 deletions

View file

@ -27,6 +27,9 @@ const
nimdocOutCss* = "nimdoc.out.css"
# `out` to make it easier to use with gitignore in user's repos
htmldocsDirname* = "htmldocs"
dotdotMangle* = "_._" ## refs #13223
# if this changes, make sure it's consistent with `esc` and `escapeLink`
# lots of other obvious options won't work, see #14454; `_` could work too
proc interp*(path: string, nimr: string): string =
result = path % ["nimr", nimr]