thp/doc-generator
Araozu 0588e1f2fe [Web] Highlight multiple tokens (datatype, number, string) 2023-04-02 19:38:17 -05:00
..
markdown/en [Web] Manually generate HTML from MD ast (h1) 2023-03-30 14:54:22 -05:00
src [Web] Highlight multiple tokens (datatype, number, string) 2023-04-02 19:38:17 -05:00
static [Web] Use compiler to color Datatype tokens in inline-code 2023-04-01 16:17:12 -05:00
.gitignore [Web] Minimal compilation from MD to HTML 2023-03-28 18:43:46 -05:00
Cargo.lock [Web] Use compiler to color Datatype tokens in inline-code 2023-04-01 16:17:12 -05:00
Cargo.toml [Web] Use compiler to color Datatype tokens in inline-code 2023-04-01 16:17:12 -05:00
README.md [Web] Use template file to render markdown 2023-03-28 19:32:06 -05:00

README.md

Doc-generator

Here is the documentation of the language in markdown, and a program to generate static HTML files from them.

src folder

Rust code to generate HTML files from MD files.

The binary is called like:

generator --input /path/to/markdown/folder/ --output /path/to/static/folder

markdown folder

Contains the Markdown. All files inside are expected to be UTF-8 encoded markdown, and have the .md file extension.

static folder

Contains CSS, JS, and HTML templates. Here the MD files are written to after being converted.

There must be a template.html file inside this folder. This file will be used to generate the HTML from MD files.

Inside template.html there must be a string {{markdown}}:

<!-- Some html -->
    {{markdown}}
<!-- More html -->

This string, {{markdown}}, will be replaced with the HTML generated from Markdown

dist folder

Coming soon, this folder will contain all HTML, CSS & JS minified after running a script.