Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portable html: the css and javascript parts #2429

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

oscarlevin
Copy link
Member

This adds a new publication variable at /publication/html/platform/@portable, which when set to "yes" will result in the HTML using a CDN for all css and javascript, and not copy those files to the output.

This is set up to allow the CLI to set a string-param for cli.version, which will be added to the URL for the CDN (since we will keep the versions of the css and javascript versioned identically to the cli).

The documentation and schema for the publication file had outdated information about platform: they said that @platform was an attribute of /publication/html, rather than platform being a child element of /publication/html. That is fixed in the guide and publication schema, adjacent to the new @portable attribute.

Happy to rename things as needed, but this does seem functional now.

@rbeezer
Copy link
Collaborator

rbeezer commented Mar 4, 2025

Appears a pretext/pretext build will use latest, right? That's a good thing. (haven't looked - is that documented?)

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.

2 participants