A tiny static site generator built in Python.
This project seeks to do the bare minimum you need if you're not willing to write your website's raw HTML.
It has only two dependencies (for Markdown and templating) and a minimal codebase.
Clone the repository and install the required dependencies:
git clone https://github.com/qrno/rockyracoon
pip install -r requirements.txt
- Templates:
- Create Jinja teamplates and place them in the "templates/" directory.
- A "default.html" template is provided and will be used if another one isn't specified in the Front Matter.
- Markdown Files:
- Put your markdown files in the "content/" directory.
- You can create subdirectories; they will be properly reflected in the final output
- Front Matter:
- At the start of the markdown files, you can place some TOML between two lines containing "---".
- This data will be passed forward to your Jinja templates.
- Use the "template" attribute to define which template should be used for the file.
- Run the Generator:
- Just run the main.py file to generate the website
- Use the "--help" flag to check out all available flags