This commit is contained in:
2025-11-30 08:24:36 +01:00
parent 394dd2c88e
commit 0963910572
13 changed files with 648 additions and 1068 deletions

View File

@@ -0,0 +1,29 @@
module docusaurus
import incubaid.herolib.core.pathlib
// import incubaid.herolib.data.atlas.client as atlas_client
// import incubaid.herolib.web.site { Page, Section, Site }
import incubaid.herolib.data.markdown.tools as markdowntools
import incubaid.herolib.ui.console
import os
// Generate docs from site configuration
pub fn (mut docsite DocSite) link_docs() ! {
c := config()!
// we generate the docs in the build path
docs_path := '${c.path_build.path}/docs'
//reset it
os.rmdir_all(docs_path)!
os.mkdir(docs_path)!
//TODO: now link all the collections to the docs folder
println(c)
if true{
panic('link_docs is not yet implemented')
}
// $dbg;
}