refactor: improve docusaurus site creation and handling

- Change site.new to always create/overwrite a site
- Add early exit to site.play if no config exists
- Use explicit sitename from docusaurus.config
- Enable openai.play action processing
- Remove debug code and improve struct initialization
This commit is contained in:
Mahmoud-Emad
2025-08-07 13:42:53 +03:00
parent daf6ce5126
commit 843b20804b
6 changed files with 10 additions and 14 deletions

View File

@@ -8,7 +8,7 @@ import crypto.blake2b
@[heap]
pub struct PlayBook {
pub mut:
actions []&Action @[skip; str: skip]
actions []&Action
priorities map[int][]int // first key is the priority, the list of int's is position in list self.actions
othertext string // in case there is text outside of the actions
result string // if any result

View File

@@ -50,7 +50,7 @@ pub fn run(args_ PlayArgs) ! {
bizmodel.play(mut plbook)!
doctree.play(mut plbook)!
docusaurus.play(mut plbook)!
// openai.play(mut plbook)!
openai.play(mut plbook)!
// slides.play(mut plbook)!
// base_install(play(mut plbook)!