1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-23 02:28:58 +00:00
git-tips/.doxie.render.toc.js
2015-07-15 16:31:27 +05:30

13 lines
295 B
JavaScript

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;