diff options
author | Joe Hand <joe@joeahand.com> | 2016-08-29 12:50:09 -0700 |
---|---|---|
committer | Joe Hand <joe@joeahand.com> | 2016-08-29 12:50:09 -0700 |
commit | 0a2b173001e9a0e437dcee9d79c9a077d1efd7ad (patch) | |
tree | 8df773c9047948c9516ec5eee135706b5d10891e | |
parent | 76dac730c6a773efbcd3a389c342c1c41519eb76 (diff) | |
download | dat-docs-0a2b173001e9a0e437dcee9d79c9a077d1efd7ad.tar.gz dat-docs-0a2b173001e9a0e437dcee9d79c9a077d1efd7ad.zip |
move ecosystem-docs files to modules folder
-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" } } |