roxy-cli/README.md

32 lines
976 B
Markdown
Raw Permalink Normal View History

# Roxy
2024-02-04 11:45:43 +00:00
this is a wip overhaul for my static site generator, roxy. it technically works but it's very rough around the edges.
# Installation
2024-02-22 06:39:05 +00:00
```rs
cargo install roxy_cli
```
2024-02-04 11:45:43 +00:00
# Usage
```bash
2024-02-22 06:39:05 +00:00
roxy_cli [INPUT] [OUTPUT]
2024-02-04 11:45:43 +00:00
```
Roxy will read each file from `INPUT` for valid files. It will look for `toml` for data and `md`, `html`, or `tera` for layout an content files. `toml` data is loaded into an object and given to content files (which can be used as variables with Tera placeholders). The content files will be processed first as Markdown, then as a Tera template. The output of this process will write to `OUTPUT`, preserving the original path (relative to `INPUT`).
# Configuration
Currently, Roxy only has two configuration keys
```toml
2024-02-05 10:35:12 +00:00
# config.toml
2024-02-15 03:37:10 +00:00
[roxy]
slug_word_limit = 8 # the max word limit for a slug
2024-02-05 10:35:12 +00:00
[syntect]
2024-02-04 11:45:43 +00:00
theme = "base16-ocean.dark" # the name of the theme for syntax highlighting
2024-02-15 03:37:10 +00:00
theme_dir = "./themes" # directory to load themes into syntect
2024-02-04 11:45:43 +00:00
```