devel docs should point to devel src (#10529)
Currently, devel docs (https://nim-lang.github.io/Nim/lib.html) source links point to master branch, leading to outdated source code and showing the wrong line.
This commit is contained in:
parent
17d0ce9c1c
commit
ad4e3fd28c
1 changed files with 2 additions and 1 deletions
|
|
@ -656,7 +656,8 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) =
|
||||||
path = path[cwd.len+1 .. ^1].replace('\\', '/')
|
path = path[cwd.len+1 .. ^1].replace('\\', '/')
|
||||||
let gitUrl = getConfigVar(d.conf, "git.url")
|
let gitUrl = getConfigVar(d.conf, "git.url")
|
||||||
if gitUrl.len > 0:
|
if gitUrl.len > 0:
|
||||||
let commit = getConfigVar(d.conf, "git.commit", "master")
|
let defaultBranch = if NimPatch mod 2 == 1: "devel" else: "master"
|
||||||
|
let commit = getConfigVar(d.conf, "git.commit", defaultBranch)
|
||||||
let develBranch = getConfigVar(d.conf, "git.devel", "devel")
|
let develBranch = getConfigVar(d.conf, "git.devel", "devel")
|
||||||
dispA(d.conf, seeSrcRope, "$1", "", [ropeFormatNamedVars(d.conf, docItemSeeSrc,
|
dispA(d.conf, seeSrcRope, "$1", "", [ropeFormatNamedVars(d.conf, docItemSeeSrc,
|
||||||
["path", "line", "url", "commit", "devel"], [rope path.string,
|
["path", "line", "url", "commit", "devel"], [rope path.string,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue