Skip to content
Personal website
Branch: master
Clone or download
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.
css
essays
img
pages
projects/addiction
templates
.gitignore
404.html
CNAME
README.md
build.py
index.html
requirements.txt

README.md

samuelstevens.github.io

This is the repo that stores the source code and build process for https://samuelstevens.me, which is also hosted at https://samuelstevens.github.io.

Jinja is used as a templating engine, and the build.py file translates the templates to static html.

Usage

pip install -R requirements.txt # preferably in a virtualenv

python build.py

python build.py commit build # commits and builds

To Do

I've written this script in a very, very hacky fashion, so there are some improvements I would like to make so that I can use it in other applications (namely Salty Software's website).

  • remove hardcoded /essays directory.
    • Now works with any subdirectory combination
  • use path separators to strip the pages/ from the page directories instead of subindexes.
  • compare existing files vs the new files to see what needs to be written again.
  • add a 'watch' functionality, such that I can use this as a development server.
  • package this as a pip package.
  • find some way to prevent *.j2.html files from showing up on the deployed site.
You can’t perform that action at this time.