Skip to content
Merged

Build #196

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion content/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,12 @@ const generate = async (config, lang) => {
};

const section = (name) => {
const src = fs.readFileSync(`content/${lang}/${name}.md`, 'utf8');
const filePath = `content/${lang}/${name}.md`;
if (!fs.existsSync(filePath)) {
console.log(`Skipping missing file: ${filePath}`);
return;
}
const src = fs.readFileSync(filePath, 'utf8');
const rows = src.split('\n');
let block = BLOCK_TEXT;
let lines = [];
Expand Down
2 changes: 1 addition & 1 deletion content/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
({
languages: ['en', 'ru', 'cz', 'uk'],
languages: ['en', 'ru', 'cz', 'uk', 'de'],
sections: [
'Abstract',
'Index',
Expand Down
6 changes: 6 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,10 @@ module.exports = [
'prettier.config.*',
],
},
{
files: ['**/Book.js', 'content/config.js'],
rules: {
strict: 'off',
},
},
];
Binary file modified release/Metaprogramming-cz.pdf
Binary file not shown.
Binary file added release/Metaprogramming-de.pdf
Binary file not shown.
Binary file modified release/Metaprogramming-en.pdf
Binary file not shown.
Binary file modified release/Metaprogramming-ru.pdf
Binary file not shown.
Binary file modified release/Metaprogramming-uk.pdf
Binary file not shown.