yard_rideliner 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37553e6d403062aae1ce7ea07aacac2e96063a34
|
4
|
+
data.tar.gz: 4400016899f5c7f9613c806c63e237bcfb53a8d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72cdf49cdb55a625c2220620fdeafecc99d65901ef46fac91572e2a460c36320e30336b89e3008ae8d1fde03cc0692dfce94a0d1bb4f8da3c006a9f31f9218d8
|
7
|
+
data.tar.gz: 762971e3fbab692a6bf4371dda736473c06fbc223f60497129bf38b744f3665d5f301e45c502aeae14b84891c5d3107f328c30e0474464f507f27a695c4611d3
|
@@ -4,7 +4,7 @@
|
|
4
4
|
// Modified from https://github.com/docmeta/rubydoc.info
|
5
5
|
|
6
6
|
function createGithubLinks() {
|
7
|
-
if (match = window.location.pathname.match(/(?:branch|tag)\/([^\/]+)
|
7
|
+
if (match = window.location.pathname.match(/([^\/]+)(?:\/doc)?\/(?:branch|tag)\/([^\/]+)\//)) {
|
8
8
|
var github_project = match[1];
|
9
9
|
var github_marker = match[2];
|
10
10
|
|
@@ -13,9 +13,10 @@ function createGithubLinks() {
|
|
13
13
|
var file = match[1];
|
14
14
|
var line = match[2];
|
15
15
|
|
16
|
-
var url = "https://github.com/rideliner/blob/" + github_marker + "/" + file + "#L" + line;
|
16
|
+
var url = "https://github.com/rideliner/" + github_project + "/blob/" + github_marker + "/" + file + "#L" + line;
|
17
|
+
var href = '<a target="_blank" href="' + url + '">View on Github</a>';
|
17
18
|
|
18
|
-
$(this).before('
|
19
|
+
$(this).before(' <span class="showSource">[' + href + ']</span>');
|
19
20
|
}
|
20
21
|
});
|
21
22
|
}
|