diff --git a/genDocs b/genDocs index ad2f1399d6..809acb1c0e 100755 --- a/genDocs +++ b/genDocs @@ -11,7 +11,6 @@ var fs = require('fs'); var path = require('path'); var docsToMarkdown = require('react-docs-markdown'); var reactDocs = require('react-docgen'); -var toc = require('markdown-toc'); var filelist = []; var walkSync = function(dir, outdir, filelist) { @@ -51,7 +50,7 @@ function checkExt(file, ext, outdir, docList) { buildDocs(reactDocs.parse(data), file, outdir); // Build TOC entry var name = getComponentName(file); - var tocString = toc('# ' + name + '\n\n').content + '\n'; + var tocString = '- ['+ name + '](' + name + ')\n'; fs.appendFile(path.join(outdir, 'index.md'), tocString, function(err) { if (err) { return console.log(err); diff --git a/package.json b/package.json index 1bcd98175e..791692980a 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,6 @@ "karma-webpack": "2.0.2", "less": "2.7.1", "less-loader": "2.2.3", - "markdown-toc": "1.1.0", "mkdirp": "0.5.1", "mocha": "2.4.5", "ncp": "2.0.0",