Skip to content

Commit

Permalink
better doc linking
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Sep 13, 2017
1 parent 995d440 commit 28d66be
Show file tree
Hide file tree
Showing 6 changed files with 125 additions and 150 deletions.
4 changes: 2 additions & 2 deletions docs/default_theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function isFunction(section) {
module.exports = function (comments, config) {
var linkerStack = new LinkerStack(config).namespaceResolver(comments, function (namespace) {
var slugger = new GithubSlugger();
return '#' + slugger.slug(namespace);
return '#' + slugger.slug(namespace, true);
});

var formatters = createFormatters(linkerStack.link);
Expand All @@ -31,7 +31,7 @@ module.exports = function (comments, config) {
path: path,
slug: function slug(str) {
var slugger = new GithubSlugger();
return slugger.slug(str);
return slugger.slug(str, true);
},
shortSignature: function shortSignature(section) {
var prefix = '';
Expand Down

0 comments on commit 28d66be

Please sign in to comment.