This commit is contained in:
2025-08-12 11:07:09 +02:00
parent c05ec6be7f
commit f8734a7e9f
2 changed files with 6 additions and 11 deletions

View File

@@ -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 markdownbook support, reintroduce the command implementation
// and uncomment the line below.

View File

@@ -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()!
}
}