generated theindex.html is valid html
This commit is contained in:
parent
89320e133b
commit
37c3c0033d
3 changed files with 25 additions and 14 deletions
|
|
@ -456,7 +456,7 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
|
|||
var seeSrcRope: Rope = nil
|
||||
let docItemSeeSrc = getConfigVar("doc.item.seesrc")
|
||||
if docItemSeeSrc.len > 0:
|
||||
let cwd = getCurrentDir()
|
||||
let cwd = getCurrentDir().canonicalizePath()
|
||||
var path = n.info.toFullPath
|
||||
if path.startsWith(cwd):
|
||||
path = path[cwd.len+1 .. ^1].replace('\\', '/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue