Skip to content

Commit 1ebf32f

Browse files
bobthemightyclaude
andcommitted
Build for Cloudflare Pages instead of Jekyll
The site is a Python/Jinja2 static generator, but a stray Gemfile made Cloudflare auto-detect Jekyll and fail. Point generate-html.py at the real _posts/ dir and have it build a self-contained dist/ (rendered HTML plus copied styles/images/book), then drop the Jekyll triggers (Gemfile, Gemfile.lock, _config.yml, .nojekyll) so Pages runs the Python build instead. Generated output (index.html, blog/, rss.xml) is no longer committed since Pages rebuilds it on every push. Configure the Pages project with build command `python generate-html.py` and output directory `dist`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent e7b520d commit 1ebf32f

19 files changed

Lines changed: 27 additions & 4229 deletions

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.venv
22
*.pyc
3+
dist/

.nojekyll

Whitespace-only changes.

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.13

Gemfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 285 deletions
This file was deleted.

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ all: build update-book serve
33
build:
44
./generate-html.py
55

6-
serve:
7-
python -m http.server 8899
6+
serve: build
7+
cd dist && python -m http.server 8899
8+
9+
preview: build
10+
npx wrangler pages dev dist
811

912
watch-build:
1013
ls **/*.md **/*.html **/*.xml *.py | entr ./generate-html.py

0 commit comments

Comments
 (0)