1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-23 10:38:58 +00:00
git-tips/.doxie.render.toc.js

13 lines
295 B
JavaScript
Raw Normal View History

2015-07-15 11:01:27 +00:00
var tips = require('./tips.json');
var render = function(data) {
var data = data.data;
var out = '* [' + data.title + '](https://github.com/git-tips/tips#' + data.title + ')\n';
if (tips[tips.length -1].title === data.title) out = out + '\n';
return out;
};
module.exports = render;