Skip to content

Commit

Permalink
fix(ssg): ✅ minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienrousseau committed Jan 1, 2025
1 parent 88c9d28 commit bf5428e
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 36 deletions.
62 changes: 31 additions & 31 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ Create a new site:

```bash
# Full command syntax
ssg --content=content --template=templates --output=output --serve=public
ssg --content=content --template=templates --serve=public

# Short form
ssg -c=content -t=templates -o=output -s=public

# Using cargo run
cargo run --bin ssg -- -c="./examples/content" -t="./examples/templates" -o="./examples/output" -s="./examples/public"
cargo run --bin ssg -- -c="./examples/content" -t="./examples/templates" -s="./examples/public"
```

### CLI Options
Expand All @@ -107,7 +107,6 @@ cargo run --bin ssg -- -c="./examples/content" -t="./examples/templates" -o="./e
|--------|-------|-------------|----------|
| `--content` | `-c` | Content path | Yes |
| `--template` | `-t` | Template path | Yes |
| `--output` | `-o` | Output path | Yes |
| `--serve` | `-s` | Server Public path | Yes |

## Examples 📚
Expand Down
3 changes: 1 addition & 2 deletions src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ impl ShokuninConfig {

// If `--watch` was used
if matches.get_flag("watch") {
// do something like self.enable_watch = true; if you have that
// or just log, e.g. debug!("Watch mode enabled")
// TODO: Implement watch mode
}

// Re-validate after overriding
Expand Down

0 comments on commit bf5428e

Please sign in to comment.