-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
68 lines (62 loc) · 1.93 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
const fs = require("fs");
const { mdToPdf } = require("md-to-pdf");
const mdToPdfProxy = async (from, to) => {
if (!fs.existsSync(to)) {
fs.writeFileSync(to, "");
}
await mdToPdf({ path: from }, { dest: to }).catch(console.error);
};
(async () => {
// 00_HTML_CSS_Vorkurs
await mdToPdfProxy(
"./00_HTML_CSS_Vorkurs/was-ist-html.md",
"./00_HTML_CSS_Vorkurs/dist/was-ist-html.pdf"
);
await mdToPdfProxy(
"./00_HTML_CSS_Vorkurs/was-ist-css.md",
"./00_HTML_CSS_Vorkurs/dist/was-ist-css.pdf"
);
// 01_HTML_CSS_Basics
await mdToPdfProxy(
"./01_HTML_CSS_Basics/fortgeschrittene-basics-html.md",
"./01_HTML_CSS_Basics/dist/fortgeschrittene-basics-html.pdf"
);
await mdToPdfProxy(
"./01_HTML_CSS_Basics/fortgeschrittene-basics-css.md",
"./01_HTML_CSS_Basics/dist/fortgeschrittene-basics-css.pdf"
);
// 02_HTML_CSS_Tools
await mdToPdfProxy(
"./02_HTML_CSS_Tools/responsive-design.md",
"./02_HTML_CSS_Tools/dist/responsive-design.pdf"
);
await mdToPdfProxy(
"./02_HTML_CSS_Tools/tooling.md",
"./02_HTML_CSS_Tools/dist/tooling.pdf"
);
await mdToPdfProxy(
"./02_HTML_CSS_Tools/frontend-frameworks.md",
"./02_HTML_CSS_Tools/dist/frontend-frameworks.pdf"
);
// 03_HTML_CSS_Challenges
await mdToPdfProxy(
"./03_HTML_CSS_Challenges/images.md",
"./03_HTML_CSS_Challenges/dist/images.pdf"
);
await mdToPdfProxy(
"./03_HTML_CSS_Challenges/vuejs-miniintro.md",
"./03_HTML_CSS_Challenges/dist/vuejs-miniintro.pdf"
);
await mdToPdfProxy(
"./03_HTML_CSS_Challenges/vue-compound-components.md",
"./03_HTML_CSS_Challenges/dist/vue-compound-components.pdf"
);
await mdToPdfProxy(
"./03_HTML_CSS_Challenges/react-compound-components.md",
"./03_HTML_CSS_Challenges/dist/react-compound-components.pdf"
);
await mdToPdfProxy(
"./03_HTML_CSS_Challenges/loadingbehaviours.md",
"./03_HTML_CSS_Challenges/dist/loadingbehaviours.pdf"
);
})();