From e1dbbd100de551301420e110e5e75d447ec66c28 Mon Sep 17 00:00:00 2001 From: Ryan Brue Date: Fri, 13 Dec 2024 00:40:52 -0600 Subject: [PATCH] wip stuff --- docs/command_reference.md | 42 +++++++ docs/{index.dj => index.md} | 0 docs/notes/contact-ryanabx.md | 6 + docs/notes/djot-example.md | 9 ++ docs/notes/markdown-example.md | 4 +- .../command_reference.html | 0 out/index.html | 33 ++++++ .../notes/contact-ryanabx.html | 0 .../notes/djot-example.html | 0 out/notes/index.html | 4 + out/notes/markdown-example.html | 4 + out/templating.html | 24 ++++ src/main.rs | 110 +++++++++++++++++- src/markdown.rs | 71 +++++++++++ src/tests.rs | 2 + 15 files changed, 306 insertions(+), 3 deletions(-) create mode 100644 docs/command_reference.md rename docs/{index.dj => index.md} (100%) create mode 100644 docs/notes/contact-ryanabx.md create mode 100644 docs/notes/djot-example.md rename docs/command_reference.dj => out/command_reference.html (100%) create mode 100644 out/index.html rename docs/notes/contact-ryanabx.dj => out/notes/contact-ryanabx.html (100%) rename docs/notes/djot-example.dj => out/notes/djot-example.html (100%) create mode 100644 out/notes/index.html create mode 100644 out/notes/markdown-example.html create mode 100644 out/templating.html create mode 100644 src/markdown.rs diff --git a/docs/command_reference.md b/docs/command_reference.md new file mode 100644 index 0000000..cb5b8d2 --- /dev/null +++ b/docs/command_reference.md @@ -0,0 +1,42 @@ +# Djot command reference + +[Back to main page](./index.md) + +## Installation + +```shell +cargo install simple-ssg +``` + +## Building Locally + +```shell +git clone https://github.com/ryanabx/simple-ssg +cd simple-ssg +cargo build --release +``` + +## Usage + +```shell +Plain and simple static site generator for Djot and Markdown light markup languages + +Usage: simple-ssg [OPTIONS] [DIRECTORY] + +Arguments: + [DIRECTORY] Path to the directory to use to generate the site (not required if -f is specified) + +Options: + -f Process a single file instead of a directory + -o Optional output path override. Defaults to ./output for directories + --clean Clean the output directory before generating the site. Useful for multiple runs + --web-prefix Specify the website prefix (defaults to local paths i.e. `./`) + -t, --template