Skip to content

Commit 701bcd1

Browse files
committed
fix(gitlab docs): switched to lowercase anchors for readmes
1 parent 6efd582 commit 701bcd1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

git-host-info.js

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ var gitHosts = module.exports = {
2222
'protocols': [ 'git+ssh', 'git+https', 'ssh', 'https' ],
2323
'domain': 'gitlab.com',
2424
'treepath': 'tree',
25-
'docstemplate': 'https://{domain}/{user}/{project}{/tree/committish}#README',
2625
'bugstemplate': 'https://{domain}/{user}/{project}/issues',
2726
'tarballtemplate': 'https://{domain}/{user}/{project}/repository/archive.tar.gz?ref={committish}'
2827
},

test/gitlab.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test('fromUrl(gitlab url)', function (t) {
1212
t.is(hostinfo.browse(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : ''), label + ' -> browse')
1313
t.is(hostinfo.browse('C'), 'https://gitlab.com/111/222/tree/' + (branch || 'master') + '/C', label + ' -> browse(path)')
1414
t.is(hostinfo.browse('C', 'A'), 'https://gitlab.com/111/222/tree/' + (branch || 'master') + '/C#a', label + ' -> browse(path, fragment)')
15-
t.is(hostinfo.docs(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : '') + '#README', label + ' -> docs')
15+
t.is(hostinfo.docs(), 'https://gitlab.com/111/222' + (branch ? '/tree/' + branch : '') + '#readme', label + ' -> docs')
1616
t.is(hostinfo.ssh(), '[email protected]:111/222.git' + hash, label + ' -> ssh')
1717
t.is(hostinfo.sshurl(), 'git+ssh://[email protected]/111/222.git' + hash, label + ' -> sshurl')
1818
t.is(hostinfo.shortcut(), 'gitlab:111/222' + hash, label + ' -> shortcut')

0 commit comments

Comments
 (0)