Skip to content

Commit

Permalink
chore(docs): make all versions except current generate index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Apr 29, 2014
1 parent 7fd31b6 commit 8ffc8be
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/processors/index-page.js
Expand Up @@ -12,13 +12,22 @@ module.exports = {
currentVersion = config.get('currentVersion');
contentsFolder = config.get('rendering.contentsFolder');
},
process: function(docs) {
process: function(docs, config) {
docs.push({
docType: 'index-page',
id: 'index-page',
currentVersion: currentVersion,
template: 'index.template.html',
outputPath: contentsFolder + '/api/index.md'
});
if (config.get('versionData').latest.name !== currentVersion) {
docs.push({
docType: 'index-page',
id: 'index-page',
currentVersion: currentVersion,
template: 'index.template.html',
outputPath: contentsFolder + '/api/index.md'
});
}
}
};

0 comments on commit 8ffc8be

Please sign in to comment.