[skip ci]wip file_walker reading article info

This commit is contained in:
Clément GOUIN
2019-06-19 16:33:14 +02:00
parent f17bcbd3c9
commit 1c30f95677
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2,5 +2,5 @@
## If you see this page, that means it's working
![missing image](./birthday-cake.png)
![thumbnail](./birthday-cake.png)
+5
View File
@@ -26,9 +26,14 @@ const fileTree = (path, cb) => {
});
};
const readIndexFile = (path,cb) => {
//TODO reading page title and possibly ![thumbnail](url)
};
module.exports = (config) => {
return {
fileTree: config['test'] ? fileTree : undefined,
readIndexFile: config['test'] ? readIndexFile : undefined,
fetchArticles: (cb) => {
fileTree(config['data_dir'], (err, fileList) => {
if (err)