Skip to content

Commit 6e72f30

Browse files
Migrate dependency management to uv and configure Lektor build (#14)
* Migrate dependency management to uv and configure Lektor build - Add pyproject.toml with lektor and plugins (lektor-jinja-content, lektor-gulp) as uv-managed dependencies - Remove [packages] section from .lektorproject since plugins are now installed via uv into the project venv - Add .venv/ to .gitignore; commit uv.lock for reproducible installs - Build with: uv sync && uv run lektor build https://claude.ai/code/session_01JyM3QgKMzyP26kinYpfro9 * Add GitHub Actions workflow to deploy to Cloudflare Pages on merge to master Builds the Lektor site with uv and deploys to Cloudflare Pages using wrangler. Requires these GitHub secrets/variables: - CLOUDFLARE_API_TOKEN (secret) - CLOUDFLARE_ACCOUNT_ID (secret) - CLOUDFLARE_PROJECT_NAME (variable) https://claude.ai/code/session_01JyM3QgKMzyP26kinYpfro9 * adjust footer * update build system --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1a781ea commit 6e72f30

21 files changed

Lines changed: 8780 additions & 7265 deletions

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy to Cloudflare Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
deployments: write
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
lfs: true
18+
19+
- uses: astral-sh/setup-uv@v5
20+
21+
- run: uv sync
22+
23+
- run: uv run lektor build --output-path build
24+
25+
- uses: cloudflare/wrangler-action@v3
26+
with:
27+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
28+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
29+
command: pages deploy build --project-name=${{ vars.CLOUDFLARE_PROJECT_NAME }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
*.glif
22
node_modules/
33

4+
# uv
5+
.venv/
6+
47
# font files
58
assets/static/fonts
69
content/tutorials/variable-waterfall-poster-1/dictionaries/*.json

Python for designers.lektorproject

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ name = Python for designers
33
url_style = absolute
44
url = http://www.pythonfordesigners.com/
55

6-
[packages]
7-
lektor-jinja-content = 0.4.2
8-
lektor-gulp = 0.3.2
9-
106
[servers.dev]
117
name = dev
128
enabled = yes

0 commit comments

Comments
 (0)