refactor: Improve docusaurus import and site handling

- Simplify command logic to use a single defined site
- Enhance git import to resolve paths relative to project root
- Add `docusaurus.export` action to trigger `build_publish`
- Change asset import destination from `docs` to `static`
- Add `dsite_get_only` helper for simplified site access
This commit is contained in:
Mahmoud-Emad
2025-08-13 04:19:32 +03:00
parent f885563982
commit e9bcf6ef69
6 changed files with 91 additions and 71 deletions

View File

@@ -9,8 +9,6 @@ pub fn play(mut plbook PlayBook) ! {
return
}
println('DEBUG: Before the error')
mut config_action := plbook.ensure_once(filter: 'site.config')!
mut p := config_action.params
@@ -55,7 +53,6 @@ pub fn play(mut plbook PlayBook) ! {
play_build_dest_dev(mut plbook, mut config)!
play_pages(mut plbook, mut website)!
}
fn play_import(mut plbook PlayBook, mut config SiteConfig) ! {