Skip to content

Commit

Permalink
Add built in templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanabx committed Sep 6, 2024
1 parent c656d76 commit e21bb64
Show file tree
Hide file tree
Showing 9 changed files with 1,318 additions and 1,129 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: cargo install simple-ssg

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

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ authors = ["Ryan Brue <[email protected]>"]
repository = "https://github.com/ryanabx/simple-ssg"
license = "MIT"
readme = "README.md"
version = "3.0.3"
version = "3.1.0"
edition = "2021"
description = "Plain and simple static site generator for Djot and Markdown light markup languages"

Expand Down
3 changes: 2 additions & 1 deletion docs/command_reference.dj
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ simple-ssg <PATH_TO_TARGET>
### Options

```
-o <OUTPUT_PATH> Optional output path override. Defaults to ./output
-o <OUTPUT_PATH> Optional output path override. Defaults to ./output
--clean Clean the output directory before generating the site. Useful for multiple runs
--no-warn Disallow any warnings
--web-prefix <WEB_PREFIX> Specify the website prefix (defaults to local paths i.e. `./`)
-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]
-h, --help Print help
-V, --version Print version
```
Expand Down
Loading

0 comments on commit e21bb64

Please sign in to comment.