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:
@@ -5,6 +5,10 @@ import freeflowuniverse.herolib.core.texttools
|
||||
import time
|
||||
|
||||
pub fn play(mut plbook PlayBook) ! {
|
||||
if !plbook.exists(filter: 'site.') && !plbook.exists(filter: 'docusaurus.config') {
|
||||
return
|
||||
}
|
||||
|
||||
// Handle multiple site configurations - look for both site.config and docusaurus.config
|
||||
mut config_actions := plbook.find(filter: 'site.config')!
|
||||
if config_actions.len == 0 {
|
||||
|
||||
Reference in New Issue
Block a user