Commit 05f61f9
authored
Add build system, rendering scripts, assets and GitHub Pages workflow for generated CV (#2)
### Motivation
- Convert the repository to a source-of-truth workflow where Markdown in
`src/` is rendered into `public/` artifacts for GitHub Pages.
- Provide a reproducible local and CI build that produces HTML and PDF
outputs while allowing a fallback when external tools are not available.
- Replace the previous monolithic generated HTML and styling with a
maintainable asset pipeline and clearer project layout.
### Description
- Add a `Makefile` with targets `build`, `html`, `pdf`, `index`, `check`
and `clean`, and with `PANDOC`/`WEASYPRINT` detection and fallbacks to
bundled Python scripts.
- Add Markdown source files under `src/` (`cv-executive.de.md`,
`cv-technical.de.md`, `cv-full.private.md`) and move/remove the old
generated HTML/PDF and `style.css`.
- Add rendering fallbacks: `scripts/render_html.py` to produce simple
HTML from Markdown and `scripts/render_pdf.py` to emit a minimal PDF
when `weasyprint` is not available.
- Add presentation assets in `assets/style.css`, commit generated
`public/` artifacts (`index.html`, `cv-*.html`, `cv-*.pdf`), update
`README.md` to document the workflow, and replace `.gitignore` with new
patterns.
- Add a GitHub Actions workflow `.github/workflows/build.yml` to build
and upload a Pages artifact on pushes to `main`, installing `pandoc` and
`weasyprint` and intentionally forcing the fallback renderers by setting
`PANDOC=__missing_pandoc__` and `WEASYPRINT=__missing_weasyprint__`
during the `make build` step.
### Testing
- No automated tests were executed as part of this change, but a CI
workflow was added to run `make build` and publish `public/` to GitHub
Pages on pushes to `main`.
- The repository now includes a `make check` target to verify generated
artifacts are committed via `git diff --exit-code public/` for future CI
checks.
------
[Codex
Task](https://chatgpt.com/codex/cloud/tasks/task_b_6a0067adc5dc83338d3e16dff6e25d0c)10 files changed
Lines changed: 391 additions & 211 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
| 7 | + | |
10 | 8 | | |
11 | | - | |
| 9 | + | |
12 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
13 | 28 | | |
14 | 29 | | |
15 | | - | |
16 | 30 | | |
17 | | - | |
| 31 | + | |
18 | 32 | | |
19 | 33 | | |
20 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
21 | 46 | | |
22 | 47 | | |
23 | 48 | | |
24 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
25 | 54 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
7 | 10 | | |
8 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
9 | 18 | | |
10 | 19 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 20 | + | |
16 | 21 | | |
17 | | - | |
18 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
25 | 33 | | |
26 | 34 | | |
27 | 35 | | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
38 | 46 | | |
39 | 47 | | |
40 | 48 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
53 | 72 | | |
54 | 73 | | |
55 | 74 | | |
56 | | - | |
57 | | - | |
58 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
59 | 89 | | |
60 | 90 | | |
61 | | - | |
62 | | - | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
63 | 94 | | |
64 | 95 | | |
65 | | - | |
66 | 96 | | |
67 | | - | |
68 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
69 | 100 | | |
70 | 101 | | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
75 | 106 | | |
76 | | - | |
| 107 | + | |
77 | 108 | | |
78 | 109 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
83 | 149 | | |
84 | 150 | | |
85 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
86 | 159 | | |
87 | | - | |
88 | | - | |
89 | | - | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
90 | 164 | | |
91 | 165 | | |
92 | 166 | | |
93 | 167 | | |
94 | | - | |
95 | | - | |
96 | 168 | | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
97 | 175 | | |
98 | 176 | | |
99 | | - | |
100 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
101 | 187 | | |
| 188 | + | |
102 | 189 | | |
103 | 190 | | |
104 | | - | |
105 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
106 | 195 | | |
| 196 | + | |
107 | 197 | | |
108 | 198 | | |
109 | 199 | | |
110 | 200 | | |
111 | | - | |
112 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
113 | 207 | | |
114 | 208 | | |
115 | | - | |
116 | | - | |
117 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
118 | 212 | | |
119 | 213 | | |
0 commit comments