match template and models for docusaurus

This commit is contained in:
timurgordon
2025-05-29 23:10:13 +03:00
parent 632a1c11c2
commit dd577d51b9
6 changed files with 268 additions and 41 deletions

View File

@@ -46,12 +46,6 @@ pub fn (mut f DocusaurusFactory) get(args_ DSiteGetArgs) !&DocSite {
}
args.path = args.path.replace('~', os.home_dir())
mut r := gs.get_repo(
url: 'https://github.com/freeflowuniverse/docusaurus_template.git'
reset: args.update
)!
mut template_path := r.patho()!
// First, check if the new site args provides a configuration
if cfg := args.config {
// Use the provided config