A simple markdown parser and site builder used for the rust.adro.codes website (pending progress in this repo).
Running main will do the following;
- Collect all the
.md
&.mdx
files under thesite
directory. - Set up the Liquid parser builder
- Get the contents of the
templates/base.liquid
file. - Go through all the markdown files.
- Parse the contents of the file to HTML
- Ensure that the path in the
site
directory exists in thepublic
directory. For example;site/blog
will have apublic/blog
equivalent. - Inject the parsed markup into the liquid template.
- Create the
.html
version in thepublic
directory.
If you wanted custom CSS or JavaScript. You can add it to the public
directory and link to it in the base.liquid
template.