diff --git a/fixtures/fixtures.conf.json b/fixtures/fixtures.conf.json index 2b73356..a7869b8 100644 --- a/fixtures/fixtures.conf.json +++ b/fixtures/fixtures.conf.json @@ -29,6 +29,7 @@ } }, "docdash": { - "static": true + "static": false, + "sort": true } } diff --git a/publish.js b/publish.js index 655f145..b0abdd6 100644 --- a/publish.js +++ b/publish.js @@ -408,6 +408,7 @@ function buildNav(members) { @param {Tutorial} tutorials */ exports.publish = function(taffyData, opts, tutorials) { + var docdash = env && env.conf && env.conf.docdash || {}; data = taffyData; var conf = env.conf.templates || {}; @@ -434,7 +435,8 @@ exports.publish = function(taffyData, opts, tutorials) { helper.setTutorials(tutorials); data = helper.prune(data); - data.sort('longname, version, since'); + + docdash.sort !== false && data.sort('longname, version, since'); helper.addEventListeners(data); var sourceFiles = {};