A walkthrough on building a custom Python-based static site generator that pulls content from a Directus CMS instance hosted on Railway via its GraphQL API. The guide covers setting up Directus with a Railway template, writing a Python build script using gql, Jinja2, and slugify to generate HTML pages, deploying to GitHub Pages via GitHub Actions, and automating rebuilds using Directus Flows to trigger repository dispatch events whenever content changes.
Sort: