Files
herolib/examples/webtools/mdbook_markdown/doctree_export.vsh
2025-03-24 06:44:39 +01:00

27 lines
727 B
GLSL
Executable File

#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.data.doctree
mut tree := doctree.new(name: 'test')!
// path string
// heal bool = true // healing means we fix images
// git_url string
// git_reset bool
// git_root string
// git_pull bool
// load bool = true // means we scan automatically the added collection
for project in 'projectinca, legal, why'.split(',').map(it.trim_space()) {
tree.scan(
git_url: 'https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/development/collections/${project}'
git_pull: false
)!
}
tree.export(
destination: '/tmp/mdexport'
reset: true
// keep_structure: true
exclude_errors: false
)!