summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-06-20 21:03:48 +0200
committerAndreas Rumpf <rumpf_a@web.de>2019-06-20 21:03:48 +0200
commitd6b0e46ee4b8dd8c92ce98c0172b21d0927602e7 (patch)
tree1341671711ba9b8934069e392fc6ab1cd0ac38fb /compiler
parent45bbf1ef5ba01eb5389f79abb204ca9bddd2b7c7 (diff)
downloadNim-d6b0e46ee4b8dd8c92ce98c0172b21d0927602e7.tar.gz
[bugfix] correct 'source' for documentation (#11540)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/docgen.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim
index a9ecf2b4c..a98360c07 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,
@gmail.com> 2015-05-24 22:37:46 -0500 committer Araq <rumpf_a@web.de> 2015-06-04 13:18:37 +0200 lib/system/g-w - Dropped 'T' from types' href='/ahoang/Nim/commit/lib/system/timers.nim?h=devel&id=2ca90a20a117ba14f6610cf57e6a233d3081b9d5'>2ca90a20a ^
4aba7421f ^

2abf3b717 ^
4aba7421f ^
2ca90a20a ^
4aba7421f ^


2ca90a20a ^
4aba7421f ^


2ca90a20a ^
4aba7421f ^

2ca90a20a ^
4aba7421f ^

2ca90a20a ^

083d4f470 ^
2ca90a20a ^
083d4f470 ^

2ca90a20a ^
4aba7421f ^



2ca90a20a ^
4aba7421f ^
2ca90a20a ^
4aba7421f ^


2ca90a20a ^
4aba7421f ^

2ca90a20a ^
4aba7421f ^
2ca90a20a ^
4aba7421f ^

2ca90a20a ^

4aba7421f ^
2ca90a20a ^
4aba7421f ^
2ca90a20a ^
4aba7421f ^



2ca90a20a ^
4aba7421f ^


2ca90a20a ^

4aba7421f ^

2ca90a20a ^

4aba7421f ^
2ca90a20a ^
4aba7421f ^

2ca90a20a ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96