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

@ -28,6 +28,8 @@
import strutils, os, hashes, strtabs, rstast, rst, highlite, tables, sequtils,
algorithm, parseutils
import "$lib/../compiler/nimpaths"
const
HtmlExt = "html"
IndexExt* = ".idx"
@ -78,8 +80,6 @@ type
testCmd: string
status: int
const dotdotMangle* = "@@" ## refs #13223
proc prettyLink*(file: string): string =
changeFileExt(file, "").replace(dotdotMangle, "..")