Eli Dupree's website source
This is the code I use to generate elidupree.com. It's not necessarily useful for anyone else.
build.py builds a test version all of the static pages, which are most of the website. I run a local instance of nginx that allows me to view the built version before deploying it.
build.py --deploy builds a version ready for deployment. It also automatically updates the "date posted" and "date modified" of posts, with the assumption that the website will actually be deployed on the same day the deploy build is made.
deploy.py --future deploys the built version to a test URL.
deploy.py --prod deploys it to the production URL.
The scripts in server_scripts/, along with blog_server_shared.py, run on a separate server. When someone makes a request to
/_services/comments, it should invoke
server_scripts/do_reply.py with the given parameters. These scripts also need a sibling
secrets.py, which is not included in this repository, and contains only an IFTTT Maker key.
render_comic_pages.py comic_ID first [last] has been used to generate the files in
/media/generated_from_source_files. Currently, it uses hard-coded paths from my own filesystem. The source files are not yet publicly available, although I intend to publish them eventually.
idupree-websitepy, to generate a script used by nginx, and to test the generated website in various ways. It is also possible to run
build.py --no-idupree-websitepy and still have a mostly-working local version by pointing nginx at
pa11y, to test the accessibility of the generated pages. Because this is slow, it must be specifically invoked with
pngquant and optipng, for rendering the comic pages. This repository contains the rendered versions, so these are not necessary for the main build process.
All artwork and prose works (including all stories and blog posts) in this repository are licensed under a Creative Comments Attribution-ShareAlike 4.0 International License.