mirror of
https://github.com/zyllian/webdog.git
synced 2025-05-10 02:26:42 -07:00
introduce webdog cli tool
This commit is contained in:
parent
8b7620b0bd
commit
399a0c1b87
26 changed files with 528 additions and 108 deletions
|
@ -46,7 +46,7 @@ pub struct SiteBuilder {
|
|||
/// The path to the build directory.
|
||||
pub build_path: PathBuf,
|
||||
/// Whether the site is going to be served locally with the dev server.
|
||||
serving: bool,
|
||||
pub serving: bool,
|
||||
|
||||
/// The resource builders available to the builder.
|
||||
pub resource_builders: HashMap<String, ResourceBuilder>,
|
||||
|
@ -105,7 +105,7 @@ impl SiteBuilder {
|
|||
std::fs::create_dir(&webdog_path)?;
|
||||
std::fs::write(
|
||||
webdog_path.join("webdog.js"),
|
||||
include_str!("./js/webdog.js"),
|
||||
include_str!("./embedded/js/webdog.js"),
|
||||
)?;
|
||||
|
||||
let root_path = self.site.site_path.join(ROOT_PATH);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue