Skip to content

The demo page reads the string catalog from beside the SEF, where the build already puts it - #33

Merged
namedgraph merged 1 commit into
masterfrom
pages-catalog-from-dist
Sep 20, 2026
Merged

namedgraph merged 1 commit into
masterfrom
pages-catalog-from-dist

Conversation

@namedgraph

Copy link
Copy Markdown
Member

Summary

The published editor at https://atomgraph.github.io/RDFa-Editor/ came up with no toolbar and no annotation handlers after #32 was merged.

index.html fetched src/translations.rdf and pooled it under dist/translations.rdf, the URI the SEF resolves against. The Pages workflow ships lib, dist and vocabs and never src, so the fetch 404ed, the Promise.all that gates SaxonJS.transform rejected, and nothing rendered. The same page worked locally, where src/ sits beside it.

The page now fetches the catalog from dist/translations.rdf. generate-sef.sh copies it there on every build, and the page cannot run without dist/index.xsl.sef.json from that same build, so the file is present wherever the page is. Fetch URI and pool key become the same string, and the workflow is unchanged. The test fixtures keep reading ../src/: they are never deployed.

Verification

Assembled _site/ exactly as deploy-pages.yml does and loaded it under Playwright:

index.html toolbar buttons console/network errors
master (deployed) 0 404 src/translations.rdf, SXJS0009 transform failed
this branch 20 none

🤖 Generated with Claude Code

… build already puts it.

index.html fetched src/translations.rdf and pooled it under dist/translations.rdf, the URI
the SEF resolves against. The Pages workflow ships lib, dist and vocabs and never src, so
the fetch 404ed on atomgraph.github.io, the Promise.all that gates SaxonJS.transform
rejected, and the published editor came up with no toolbar and no handlers - while the
same page worked locally, where src/ sits beside it.

generate-sef.sh copies the catalog into dist/ on every build, and the page cannot run
without dist/index.xsl.sef.json from that same build, so dist/translations.rdf is present
wherever the page is. Fetching it from there makes the fetch URI and the pool key the same
string and leaves the workflow as it is. The test fixtures keep reading ../src/: they are
never deployed.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@namedgraph
namedgraph merged commit cfa99ba into master Sep 20, 2026
2 checks passed
@namedgraph
namedgraph deleted the pages-catalog-from-dist branch September 20, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant