refactored code

pull/3/head
nrfq 2021-11-05 16:17:21 -04:00
parent 6c2d80cfe7
commit 10e5d2a452
1 changed files with 0 additions and 2 deletions

View File

@ -123,7 +123,6 @@ let parseMarkdown = function(doc){
// errors.push(str)
}
});
console.log(sections);
return sections;
}
@ -133,7 +132,6 @@ function parseDirectory(directory){
let mediaType = getMediaFromDirectory(directory);
const filenames = getFilesFromDir(path.resolve(directory));
filenames.forEach((filename) => {
console.log(filename);
const doc = fs.readFileSync(filename);
let sections = parseMarkdown(doc); // parse the markdown document
const langCode = getLangFromFilename(filename);