diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | build.js | 3 | ||||
-rw-r--r-- | docs/contents.json | 6 |
3 files changed, 6 insertions, 4 deletions
@@ -3,3 +3,4 @@ dist .DS_Store repos.txt node_modules +docs/modules @@ -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" } } |