Update docdown options.

This commit is contained in:
John-David Dalton
2016-07-31 22:16:11 -07:00
parent bccb4150fd
commit cf0b3e3212
2 changed files with 15 additions and 11 deletions

View File

@@ -16,22 +16,29 @@ var pkg = require('../../package.json'),
var config = {
'base': {
'entryLinks': [
'<% if (name == "templateSettings" || !/^(?:methods|properties|seq)$/i.test(category)) {' +
'print("[npm package](https://www.npmjs.com/package/lodash." + name.toLowerCase() + ")")' +
'} %>'
],
'path': path.join(basePath, 'lodash.js'),
'sourceLink': '[source](${sourceHref})',
'title': '<a href="https://lodash.com/">lodash</a> <span>v' + version + '</span>',
'toc': 'categories',
'url': 'https://github.com/lodash/lodash/blob/' + version + '/lodash.js'
},
'github': {
'hash': 'github'
'style': 'github',
'sublinks': [
'<% if (name == "templateSettings" || !/^(?:methods|properties|seq)$/i.test(category)) {' +
'print("[&#x24C3;](https://www.npmjs.com/package/lodash." + name.toLowerCase() + " \\"See the npm package\\")")' +
'} %>'
]
},
'site': {
'tocHref': '#docs'
'entryLink': '<a href="${entryHref}" class="fa fa-link"></a>',
'sourceLink': '[source](${sourceHref})',
'tocHref': '',
'tocLink': '',
'sublinks': [
'<% if (name == "templateSettings" || !/^(?:methods|properties|seq)$/i.test(category)) {' +
'print("[npm package](https://www.npmjs.com/package/lodash." + name.toLowerCase() + ")")' +
'} %>'
]
}
};

View File

@@ -23,9 +23,6 @@ function build(type) {
// Remove docdown horizontal rules.
$('hr').remove();
// Remove table of contents (toc) links.
$('a[href="#docs"]').remove();
// Remove marky-markdown additions.
$('[id^="user-content-"]')
.attr('class', null)