Skip to content

qrno/rockyracoon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RockyRaccoon

A tiny static site generator built in Python.

Philosophy

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.

Installation

Clone the repository and install the required dependencies:

git clone https://github.com/qrno/rockyracoon
pip install -r requirements.txt

Usage

  1. 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.
  2. Markdown Files:
    • Put your markdown files in the "content/" directory.
    • You can create subdirectories; they will be properly reflected in the final output
  3. 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.
  4. Run the Generator:
    • Just run the main.py file to generate the website
    • Use the "--help" flag to check out all available flags

About

Tiny Static Site Generator written in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published