_build.js minor improvements, also writes to README.md now
This commit is contained in:
parent
eedf96a3d7
commit
144567d036
22
_build.js
22
_build.js
|
@ -19,13 +19,13 @@ const BUILD_SECTION = {
|
|||
desktopApps: () => generateCategorySection('Desktop apps', readYaml()['desktop applications']),
|
||||
mobileApps: () => generateCategorySection('Mobile apps', readYaml()['desktop applications']),
|
||||
hardware: () => generateCategorySection('Hardware', readYaml()['hardware']),
|
||||
useful: () => {}, // TODO: Make these do stuff
|
||||
resources: () => {},
|
||||
books: () => {},
|
||||
blogs: () => {},
|
||||
news: () => {},
|
||||
lighterSide: () => {},
|
||||
closingRemarks: () => {}
|
||||
useful: () => '# Useful links, tools, and advice',
|
||||
resources: () => readFile('md/_resources.md'),
|
||||
books: () => readFile('md/_books.md'),
|
||||
blogs: () => readFile('md/_blogs.md'),
|
||||
news: () => readFile('md/_news.md'),
|
||||
lighterSide: () => readFile('md/_lighterSide.md'),
|
||||
closingRemarks: () => readFile('md/_closingRemarks.md')
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -55,9 +55,9 @@ function __main__() {
|
|||
dgSectionData.push(BUILD_SECTION.closingRemarks());
|
||||
|
||||
// Write to the README file
|
||||
fs.writeFileSync(path.join(__dirname, 'README-test.md'), dgSectionData.join(os.EOL + os.EOL));
|
||||
fs.writeFileSync(path.join(__dirname, 'README.md'), dgSectionData.join(os.EOL + os.EOL));
|
||||
|
||||
console.log(os.EOL + 'Done!')
|
||||
console.log('Done!')
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -120,6 +120,4 @@ function generateServiceSection(data) {
|
|||
return serviceSection;
|
||||
}
|
||||
|
||||
false
|
||||
? console.log(YAML.parse(fs.readFileSync(path.join(__dirname, 'degoogle.yml')).toString())['web based products'].search_images)
|
||||
: __main__();
|
||||
__main__();
|
Loading…
Reference in New Issue