From 0a2b173001e9a0e437dcee9d79c9a077d1efd7ad Mon Sep 17 00:00:00 2001 From: Joe Hand Date: Mon, 29 Aug 2016 12:50:09 -0700 Subject: move ecosystem-docs files to modules folder --- .gitignore | 1 + build.js | 3 ++- docs/contents.json | 6 +++--- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 1a5272c..daf1f14 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ dist .DS_Store repos.txt node_modules +docs/modules diff --git a/build.js b/build.js index 62e06f8..6f3cc22 100644 --- a/build.js +++ b/build.js @@ -1,6 +1,7 @@ var fs = require('fs') var ndjson = require('ndjson') +fs.mkdirSync('docs/modules') process.stdin.pipe(ndjson.parse()).on('data', function (obj) { - fs.writeFileSync('docs/' + obj.name + '.md', obj.readme) + fs.writeFileSync('docs/modules/' + obj.name + '.md', obj.readme) }) diff --git a/docs/contents.json b/docs/contents.json index 4ca151a..f732746 100644 --- a/docs/contents.json +++ b/docs/contents.json @@ -1,6 +1,6 @@ { "Dat": { - "Introduction": "dat.md", + "Introduction": "modules/dat.md", "How Dat Works": "how-dat-works.md", "FAQ": "faq.md" }, @@ -11,7 +11,7 @@ "Ecosystem": { "Overview": "ecosystem.md", "SLEEP": "sleep.md", - "Hyperdrive": "hyperdrive.md", - "Hypercore": "hypercore.md" + "Hyperdrive": "modules/hyperdrive.md", + "Hypercore": "modules/hypercore.md" } } -- cgit v1.2.3