rost_gen

A simple static site generator that generates basic .html files from .txt files.

Getting started

This **project** requires that you have [Rust and Cargo](https://www.rust-lang.org/learn/get-started) installed on your device. ``` git clone git@github.com:Eakam1007/rost_gen.git cd rost_gen cargo build --release ``` This will create the optimized build in the ./target/release directory. Run the project by changing into the release directory: ``` cd target/release ```

Usage

``` ./rost_gen[.exe] [OPTION] ``` | Option | Description | | ------------- | ------------- | | -v, --version | Print tool name and version | | -h, --help | Print help message with a list of options | | -i, --input [PATH] | Provided a path to a text(.txt) or Markdown (.md) file, generate an html file
Provided a path to a directory, generate html files for all text(.txt) and Markdown (.md) files in that directory
Warning: will output generated html files to the ./dist directory, replacing any existing content| | -o, --output [PATH] | Optional: Use to specify an output directory:
``-i, --input [INPUT_PATH] -o, --output [OUTPUT_PATH]``

This will not delete any existing content in the specified directory. If the directory doesn't exist, it will be created| | -l, --lang [LANG] | Optional: Use to specify the language (lang attribute of the html tag) of html file. Defaults to "en-CA" | |-c, --config [PATH]| Flags accept a file path to a JSON config file.|

Features

Markdown (.md) File Features


will be converted into html


``` This is only supported for lines that just have the above markdown text

Examples