..
This commit is contained in:
@@ -95,7 +95,6 @@ fn do() ! {
|
|||||||
// herocmds.cmd_configure(mut cmd)
|
// herocmds.cmd_configure(mut cmd)
|
||||||
// herocmds.cmd_postgres(mut cmd)
|
// herocmds.cmd_postgres(mut cmd)
|
||||||
// Ensure the herocmds module is imported so the remaining commands are visible
|
// 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.
|
// `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
|
// If you need markdown‑book support, re‑introduce the command implementation
|
||||||
// and uncomment the line below.
|
// and uncomment the line below.
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ pub fn cmd_docusaurus(mut cmdroot Command) Command {
|
|||||||
|
|
||||||
fn cmd_docusaurus_execute(cmd Command) ! {
|
fn cmd_docusaurus_execute(cmd Command) ! {
|
||||||
// ---------- FLAGS ----------
|
// ---------- 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 buildpublish := cmd.flags.get_bool('buildpublish') or { false }
|
||||||
mut builddevpublish := cmd.flags.get_bool('builddevpublish') or { false }
|
mut builddevpublish := cmd.flags.get_bool('builddevpublish') or { false }
|
||||||
mut dev := cmd.flags.get_bool('dev') or { false }
|
mut dev := cmd.flags.get_bool('dev') or { false }
|
||||||
@@ -155,19 +155,15 @@ fn cmd_docusaurus_execute(cmd Command) ! {
|
|||||||
|
|
||||||
// ---------- ACTIONS ----------
|
// ---------- ACTIONS ----------
|
||||||
if buildpublish {
|
if buildpublish {
|
||||||
// TODO: instantiate a DocusaurusSite object (e.g. `dsite_opt := docusaurus.new(...)`)
|
dsite_opt := docusaurus.new(path:docusaurus_path)!
|
||||||
// and call the appropriate method. The variable is currently undefined,
|
dsite_opt.build()!
|
||||||
// so the call is commented out until the implementation is added.
|
|
||||||
// dsite_opt.build_publish()!
|
|
||||||
// } else if builddevpublish {
|
|
||||||
// dsite_opt.build()!
|
|
||||||
} else if dev {
|
} else if dev {
|
||||||
// dsite_opt.dev(
|
dsite_opt.dev(
|
||||||
open: open
|
open: open_
|
||||||
watch_changes: false
|
watch_changes: false
|
||||||
)!
|
)!
|
||||||
} else {
|
} else {
|
||||||
// default: just build the static site
|
// default: just build the static site
|
||||||
// dsite_opt.build()!
|
dsite_opt.build()!
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user