aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Hand <joe@joeahand.com>2016-08-29 12:50:09 -0700
committerJoe Hand <joe@joeahand.com>2016-08-29 12:50:09 -0700
commit0a2b173001e9a0e437dcee9d79c9a077d1efd7ad (patch)
tree8df773c9047948c9516ec5eee135706b5d10891e
parent76dac730c6a773efbcd3a389c342c1c41519eb76 (diff)
downloaddat-docs-0a2b173001e9a0e437dcee9d79c9a077d1efd7ad.tar.gz
dat-docs-0a2b173001e9a0e437dcee9d79c9a077d1efd7ad.zip
move ecosystem-docs files to modules folder
-rw-r--r--.gitignore1
-rw-r--r--build.js3
-rw-r--r--docs/contents.json6
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"
}
}