Spaces:
Running
Running
Commit History
-
deploy: split the tree into backend/frontend/database and centralise hosts
Sahil Kumar +1: Claude Opus 5Every CMS host name now comes from backend/il_endpoints.py instead of being hardcoded across eight modules, so switching stacks is config rather than an edit. The four defaults point at PRODUCTION: .env is gitignored and dockerignored, so the Space has no IL_* variables and inherits these defaults — it will read and write live CMS content. To put the Space back on preprod, set IL_QB_API, IL_GATEWAY_API, IL_COMMUNITY_API and IL_COMMUNITY_WEB as Space secrets. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>2e740d5
-
tests: cover the Word maths and image pipeline
Sahil Kumar +1: Claude Opus 5First tests in the repo. pytest collected 0 items before this. Fixtures build .docx files on the fly from OMML written the way Word writes it, rather than committing binaries, so each test shows the markup it exercises. Covers OMML -> MathML for the constructs papers contain, the no-stylesheet fallback and its warning, the unconverted-marker guard, image extraction and the undrawable-metafile case, every option layout keeping its solution, and that the reviewed HTML and the uploaded payload are the same string. Two tests document limitations rather than assert correctness: Word's boxed and cancelled formulas convert to <menclose>, which no browser draws, and data-URI images carry no dimensions so the CMS gets an unsized image where the preview only looks right because of its own CSS. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>0451415