Skip to content
Simple, lightweight, and magic-free static site/blog generator for Python coders
Branch: master
Clone or download
Pull request Compare This branch is 56 commits ahead, 15 commits behind sunainapai:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
content
layout
static/css
test
tools
.coveragerc
.gitignore
.travis.yml
LICENSE.md
README.md
__init__.py
add_parser.py.sample
makesite.py
requirements.txt
vars.py

README.md

makesite.py

Build Status codecov MIT licensed

Take full control of your static website/blog generation by writing your own simple, lightweight, and magic-free static site generator in Python. That's right! Reinvent the wheel, fellas!

Fork

This project is a fork from https://github.com/sunainapai/makesite, please visit the original project for the original Readme.

Usage

Requirements

pip3 install -r requirements.txt

Compile the website

python3 makesite.py --env dev
cd _site
python3 -m http.server 8000

Features from gabfl/makesite

This fork implements the following features that do not exist in the original version:

  • Uses Jinja2 to render templates
  • Easy customization with variables stored in vars.py
  • Multiple environments (dev, prod...) defined in vars.py. A build for a specific environment can be done with python makesite.py --env prod
  • Ability to add additional parsing with a file add_parser.py (see add_parser.py.sample)
  • Date format customization from vars.py
  • Template variables ({{ blog_recent }}, {{ news_recent }}...) to show a list of the 5 most recent items in a section

Credits

sunainapai for the original project and Susam for the original documentation and the unit tests.

License

This is free and open source software. You can use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of it, under the terms of the MIT License.

This software is provided "AS IS", WITHOUT WARRANTY OF ANY KIND, express or implied. See the MIT License for details.

Support

To report bugs, suggest improvements, or ask questions, please visit:

You can’t perform that action at this time.