Skip to content

Commit 745f2a4

Browse files
committed
Add end message reminding the user about ways they might browse the generated content.
1 parent f1d2394 commit 745f2a4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/blog.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,15 @@ use std::error::Error;
44
mod lib;
55

66
pub fn main() -> Result<(), Box<dyn Error>> {
7-
lib::main()
7+
lib::main()?;
8+
9+
println!("blog has been generated; you can now serve its content by running\n\
10+
{INDENT}python3 -m http.server --directory {ROOT}/site\n\
11+
or running:\n\
12+
{INDENT}cargo run -p serve\n\
13+
or you can read it directly by opening a web browser on:\n\
14+
{INDENT}file:///{ROOT}/site/index.html",
15+
ROOT=env!("CARGO_MANIFEST_DIR"), INDENT=" ");
16+
17+
Ok(())
818
}

0 commit comments

Comments
 (0)