Crates.io | roxy_cli |
lib.rs | roxy_cli |
version | 0.1.1 |
source | src |
created_at | 2024-02-21 15:46:20.833534 |
updated_at | 2024-02-22 06:16:57.227716 |
description | A command-line static site generator |
homepage | https://roxy-docs.netlify.app |
repository | https://fem.mint.lgbt/kitsunecafe/roxy-cli |
max_upload_size | |
id | 1148190 |
size | 58,168 |
this is a wip overhaul for my static site generator, roxy. it technically works but it's very rough around the edges.
it's not a published crate yet so you have to compile it for now, sorry
roxy [INPUT] [OUTPUT]
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
).
Currently, Roxy only has two configuration keys
# config.toml
[roxy]
slug_word_limit = 8 # the max word limit for a slug
[syntect]
theme = "base16-ocean.dark" # the name of the theme for syntax highlighting
theme_dir = "./themes" # directory to load themes into syntect