Add docs which replace the existing preview (currently like-for-like), and include a mathjax demo page similar to the existing preview.html#106
Merged
Conversation
…se assets
- docs/ contains the source for github.io: /xkcd-script/ (font preview,
ported from the old root preview.html) and /mathjax/ (MathJax
integration demo). Shared site.css + site.js provide the common header
and querystring-backed share URL.
- docs/build.sh assembles build/html/ by copying docs/ and pulling the
current release's xkcd-script.{otf,ttf,woff,woff2} + xkcd-mathjax3.js
into build/html/assets/. Used both locally and by the workflow.
- .github/workflows/pages.yml runs the same script and deploys via
actions/deploy-pages, triggered on push to master (docs/**), on
release published, or manually.
- Release artifacts now use unversioned filenames (version stays in the
font name table and JS header). Enables /releases/latest/download/...
stable URLs and simplifies docs asset naming.
- Root preview.html removed; docs/preview.html redirects to
/xkcd-script/ preserving querystring + hash.
Member
Author
|
Nothing really controversial here - it is infrastructure to help us build out more docs functionality (including a clear how-to on using the mathjax integration). Merging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.