forked from tmcw/docbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.js
24 lines (23 loc) · 949 Bytes
/
content.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var fs = require('fs');
/**
* This file exports the content of your website, as a bunch of concatenated
* Markdown files. By doing this explicitly, you can control the order
* of content without any level of abstraction.
*
* Using the brfs module, fs.readFileSync calls in this file are translated
* into strings of those files' content before the file is delivered to a
* browser: the content is read ahead-of-time and included in bundle.js.
*/
module.exports =
'# Introduction\n' +
fs.readFileSync('./content/introduction.md', 'utf8') + '\n' +
'# API Status\n' +
fs.readFileSync('./content/status.md', 'utf8') + '\n' +
'#Users\n' +
fs.readFileSync('./content/user.md', 'utf8') + '\n' +
'# Observations\n' +
fs.readFileSync('./content/observation.md', 'utf8') + '\n' +
'# Taxa\n' +
fs.readFileSync('./content/taxa.md', 'utf8') + '\n' +
'# Collections\n' +
fs.readFileSync('./content/collection.md', 'utf8') + '\n';