No description
  • HTML 53.9%
  • Python 40.6%
  • CSS 2.2%
  • Dockerfile 2%
  • Nix 0.6%
  • Other 0.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Cyril Šebek a952c18d59
All checks were successful
Build Docker Image and Deploy / Build Image and push to Registry (push) Successful in 7s
Build Docker Image and Deploy / Deploy on webserver (push) Successful in 6s
translation edit
2026-10-29 23:22:37 +01:00
.forgejo/workflows updating workflows 2026-10-29 10:01:27 +01:00
.idea containerisation 2026-10-28 21:12:40 +01:00
app translation edit 2026-10-29 23:22:37 +01:00
content Sitemap.xml cleanup 2026-10-29 07:58:29 +01:00
.dockerignore containerisation 2026-10-28 21:12:40 +01:00
.gitignore gitignore style.css 2026-10-29 10:13:56 +01:00
babel.cfg Contact page 2026-10-26 10:35:15 +01:00
docker-compose.yaml containerisation 2026-10-28 21:12:40 +01:00
Dockerfile fix fix Dockerfile building style.css 2026-10-29 10:23:33 +01:00
Makefile Translations 2026-10-28 17:39:34 +01:00
package.json remove leftovers of failed merge 2026-10-28 21:24:54 +01:00
pnpm-lock.yaml remove leftovers of failed merge 2026-10-28 21:24:54 +01:00
pnpm-workspace.yaml version 2.0 python rewrite 2026-09-13 22:36:23 +02:00
README.md version 2.0 python rewrite 2026-09-13 22:36:23 +02:00
requirements.txt i18n v1.0 2026-09-14 09:30:01 +02:00
setup-venv.sh i18n v1.0 2026-09-14 09:30:01 +02:00
shell.nix version 2.0 python rewrite 2026-09-13 22:36:23 +02:00

cyrilsebek.cz rewrite

Stack: FastAPI + Jinja2 + HTMX + Tailwind/daisyUI. Content = flat markdown files w/ frontmatter, no DB.

Dev setup

NixOS

nix-shell

Drops into shell w/ python312, node, venv auto-created + deps installed.

Fedora / other

bash setup-venv.sh
source .venv/bin/activate

Both, after venv active

npm install
npx tailwindcss -i app/static/css/input.css -o app/static/css/output.css --watch
uvicorn app.main:app --reload

Fonts: download JetBrains Mono + Inter (variable) woff2 files into app/static/fonts/ - not committed here, grab from:

Content

Add .md files under content/<category>/. Frontmatter schema:

---
title: "..."
date: 2026-01-15
tags: [python, homelab]
lang: en
status: active
seo_description: "..."
og_image: /static/img/....png
---

Restart process to pick up new/changed content (index built at import time).

Branch flow

  • python branch: active rewrite work
  • merge to main: triggers .forgejo/workflows/deploy.yml -> builds docker image, pushes to registry, deploys over SSH via docker-compose on target host

Set these repo secrets in Forgejo before first merge: REGISTRY_URL, REGISTRY_USER, REGISTRY_PASSWORD, DEPLOY_HOST, DEPLOY_USER, DEPLOY_SSH_KEY

Also check runs-on: docker in the workflow matches your actual Forgejo runner label.