Skip to content

Commit 3c34bb3

Browse files
committed
Add DE version to build
1 parent cab689f commit 3c34bb3

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

content/build.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,12 @@ const generate = async (config, lang) => {
8989
};
9090

9191
const section = (name) => {
92-
const src = fs.readFileSync(`content/${lang}/${name}.md`, 'utf8');
92+
const filePath = `content/${lang}/${name}.md`;
93+
if (!fs.existsSync(filePath)) {
94+
console.log(`Skipping missing file: ${filePath}`);
95+
return;
96+
}
97+
const src = fs.readFileSync(filePath, 'utf8');
9398
const rows = src.split('\n');
9499
let block = BLOCK_TEXT;
95100
let lines = [];

content/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
({
2-
languages: ['en', 'ru', 'cz', 'uk'],
2+
languages: ['en', 'ru', 'cz', 'uk', 'de'],
33
sections: [
44
'Abstract',
55
'Index',

0 commit comments

Comments
 (0)