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:
@@ -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
|
||||
|
||||
@@ -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)!
|
||||
|
||||
Reference in New Issue
Block a user