Skip to content
This repository was archived by the owner on Feb 16, 2025. It is now read-only.

Commit e21bb64

Browse files
committed
Add built in templates
1 parent c656d76 commit e21bb64

9 files changed

+1318
-1129
lines changed

.github/workflows/deploy-site.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
run: cargo install simple-ssg
2222

2323
- name: Generate static site
24-
run: ~/.cargo/bin/simple-ssg --clean ./docs -o ./output
24+
run: ~/.cargo/bin/simple-ssg --clean ./docs -o ./output -t github-markdown
2525

2626
- name: Deploy to GitHub Pages
2727
uses: peaceiris/actions-gh-pages@v4

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ authors = ["Ryan Brue <[email protected]>"]
44
repository = "https://github.com/ryanabx/simple-ssg"
55
license = "MIT"
66
readme = "README.md"
7-
version = "3.0.3"
7+
version = "3.1.0"
88
edition = "2021"
99
description = "Plain and simple static site generator for Djot and Markdown light markup languages"
1010

docs/command_reference.dj

+2-1
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ simple-ssg <PATH_TO_TARGET>
2525
### Options
2626

2727
```
28-
-o <OUTPUT_PATH> Optional output path override. Defaults to ./output
28+
-o <OUTPUT_PATH> Optional output path override. Defaults to ./output
2929
--clean Clean the output directory before generating the site. Useful for multiple runs
3030
--no-warn Disallow any warnings
3131
--web-prefix <WEB_PREFIX> Specify the website prefix (defaults to local paths i.e. `./`)
32+
-t, --template <TEMPLATE> Specify a built in template to use (will override a template.html in any directory!). defaults to whatever templates are found in template.html in the directories [possible values: github-markdown, force-none]
3233
-h, --help Print help
3334
-V, --version Print version
3435
```

0 commit comments

Comments
 (0)