A simple markdown to static site generator blog, with a locally hosted editor. Supports S3 and CloudFront for hosting. Shared for folks who may want a very light weight website.
pip install -r requirements.txtSetup a config.yaml in the root directory based on the config.yaml.example
maketo generate the static site
make cleanto clean the locally generated files
make allto clean the locally generated files and re-upload the site to S3 / wipe CF
make setupone-time hosting configuration: points the S3 bucket's website index/error documents at index.html / 404.html, and adds CloudFront custom error responses mapping both 403 and 404 to /404.html. Idempotent — safe to re-run; it only triggers a CloudFront update when the rules have drifted.
python app.pyto launch the post editor service
surf to http://localhost:5000
Do not expose the editor to the internet. Deleting files using the editor will not delete / remove them from S3.
See it live baka.jp