Commit 16dac66
authored
Make required folder structure more flexible (#108)
* 🚧♻️ Refactor creating and writing components streamlit files
- writing of imports + component code (write python file)
- component - fct map for generation
- building list of components
* 🎨 move static_dir to init, remove some old code
* ✨ add components to streamlit home site
- first section is home section recording it's compents
- needs to be treated separately
* ✨ Add section components
- add overview page for each section showing components in main section folder
* 🎨 pass relative section file paths on using Section dataclasses
- Section could be used everywhere, Subsection is not really necessary. If a Section has subsections, the logic changes. Else nothing changes.
* 🔥 remove old code (unused)
* ♻️ move is_static_report to init for quarto
- set based on report type, and this is set on init
- avoid to pass on variable to all functions.
* 🎨 move static_dir to quarto_report init
- same as for streamlit_report to prepare refactoring
of components parsing.
* ♻️ factor out component creation
- very similar to _combine_components in streamlit_report
- imports has to be a list of list -> figure this out
- added debug message for skipping components in
static reports-> should maybe be a warining?
* 🎨 remove blank line from logs
* ✨ add components from main and section folders
* 🎨 align import handling in streamlit and quarto reports
* 🐛 single curley-brackets
- I removed an empty f-string and this lead to doubled curely brackets...
* 🎨 add tabs to overview sections
* 🐛 handle single descripton.md files
1 parent e59eec3 commit 16dac66
File tree
5 files changed
+378
-215
lines changed- src/vuegen
5 files changed
+378
-215
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
230 | 233 | | |
231 | 234 | | |
232 | 235 | | |
| |||
257 | 260 | | |
258 | 261 | | |
259 | 262 | | |
| 263 | + | |
260 | 264 | | |
261 | 265 | | |
262 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
263 | 276 | | |
264 | 277 | | |
265 | 278 | | |
266 | 279 | | |
267 | 280 | | |
| 281 | + | |
268 | 282 | | |
269 | 283 | | |
270 | 284 | | |
| |||
301 | 315 | | |
302 | 316 | | |
303 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
304 | 325 | | |
305 | 326 | | |
306 | 327 | | |
307 | 328 | | |
308 | 329 | | |
309 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
310 | 339 | | |
311 | 340 | | |
312 | 341 | | |
| |||
372 | 401 | | |
373 | 402 | | |
374 | 403 | | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
375 | 408 | | |
376 | 409 | | |
377 | 410 | | |
| |||
0 commit comments