Render space pages from Forgejo markdown (CSOC-WP-0004-T04)

Fetch raw files from Forgejo, sanitize markdown to HTML, and show them on
space detail. Ship a public demo fixture path and seed_demo_space command.
This commit is contained in:
tegwick 2026-08-12 01:56:30 +02:00
parent 86b54243b8
commit 1cedd8f219
13 changed files with 606 additions and 26 deletions

View file

@ -119,3 +119,10 @@ FLEX_AUTH_PROTECTED_SYSTEM_ID = config(
"FLEX_AUTH_PROTECTED_SYSTEM_ID", default="coulomb-social"
)
FLEX_AUTH_TIMEOUT_SECONDS = config("FLEX_AUTH_TIMEOUT_SECONDS", default=3.0, cast=float)
# ── Space content (Forgejo / ADR-0002) ──────────────────────────────────────
FORGEJO_BASE_URL = config("FORGEJO_BASE_URL", default="https://forgejo.coulomb.social")
FORGEJO_TOKEN = config("FORGEJO_TOKEN", default="") # optional; public raw needs none
FORGEJO_TIMEOUT_SECONDS = config("FORGEJO_TIMEOUT_SECONDS", default=10.0, cast=float)
# Optional local root for offline tests: <root>/<space-slug>/<content_root>/index.md
SPACE_CONTENT_FIXTURE_ROOT = config("SPACE_CONTENT_FIXTURE_ROOT", default="")