From f8734a7e9f68d3fa7abc3faafb1abbce3daceec0 Mon Sep 17 00:00:00 2001 From: despiegk Date: Tue, 12 Aug 2025 11:07:09 +0200 Subject: [PATCH] .. --- cli/hero.v | 1 - lib/core/herocmds/docusaurus.v | 16 ++++++---------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/cli/hero.v b/cli/hero.v index 5dae9d60..c9b6ccfb 100644 --- a/cli/hero.v +++ b/cli/hero.v @@ -95,7 +95,6 @@ fn do() ! { // herocmds.cmd_configure(mut cmd) // herocmds.cmd_postgres(mut cmd) // Ensure the herocmds module is imported so the remaining commands are visible - import freeflowuniverse.herolib.core.herocmds // `cmd_mdbook` is not part of the current code base – it has been removed. // If you need markdown‑book support, re‑introduce the command implementation // and uncomment the line below. diff --git a/lib/core/herocmds/docusaurus.v b/lib/core/herocmds/docusaurus.v index f7812c61..d14c4fb3 100644 --- a/lib/core/herocmds/docusaurus.v +++ b/lib/core/herocmds/docusaurus.v @@ -115,7 +115,7 @@ pub fn cmd_docusaurus(mut cmdroot Command) Command { fn cmd_docusaurus_execute(cmd Command) ! { // ---------- FLAGS ---------- - mut open := cmd.flags.get_bool('open') or { false } + mut open_ := cmd.flags.get_bool('open') or { false } mut buildpublish := cmd.flags.get_bool('buildpublish') or { false } mut builddevpublish := cmd.flags.get_bool('builddevpublish') or { false } mut dev := cmd.flags.get_bool('dev') or { false } @@ -155,19 +155,15 @@ fn cmd_docusaurus_execute(cmd Command) ! { // ---------- ACTIONS ---------- if buildpublish { - // TODO: instantiate a DocusaurusSite object (e.g. `dsite_opt := docusaurus.new(...)`) - // and call the appropriate method. The variable is currently undefined, - // so the call is commented out until the implementation is added. - // dsite_opt.build_publish()! - // } else if builddevpublish { - // dsite_opt.build()! + dsite_opt := docusaurus.new(path:docusaurus_path)! + dsite_opt.build()! } else if dev { - // dsite_opt.dev( - open: open + dsite_opt.dev( + open: open_ watch_changes: false )! } else { // default: just build the static site - // dsite_opt.build()! + dsite_opt.build()! } }