GithubHelp home page GithubHelp logo

rockyracoon's Introduction

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, place a JSON object 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

rockyracoon's People

Contributors

qrno avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.