From d5ea497cff7c4d80452b9a3faafe8a9b443a2732 Mon Sep 17 00:00:00 2001 From: Miran Date: Thu, 20 Jun 2019 21:03:48 +0200 Subject: [PATCH] [bugfix] correct 'source' for documentation (#11540) (cherry picked from commit d6b0e46ee4b8dd8c92ce98c0172b21d0927602e7) --- compiler/docgen.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index a9ecf2b4c9..a98360c07c 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -680,7 +680,9 @@ proc genItem(d: PDoc, n, nameNode: PNode, k: TSymKind) = path = path[cwd.len+1 .. ^1].replace('\\', '/') let gitUrl = getConfigVar(d.conf, "git.url") if gitUrl.len > 0: - let defaultBranch = if NimPatch mod 2 == 1: "devel" else: "master" + let defaultBranch = + if NimPatch mod 2 == 1: "devel" + else: "version-$1-$2" % [$NimMajor, $NimMinor] let commit = getConfigVar(d.conf, "git.commit", defaultBranch) let develBranch = getConfigVar(d.conf, "git.devel", "devel") dispA(d.conf, seeSrcRope, "$1", "", [ropeFormatNamedVars(d.conf, docItemSeeSrc,