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

Math support files #899

Merged
merged 2 commits into from
Nov 28, 2022
Merged

Math support files #899

merged 2 commits into from
Nov 28, 2022

Conversation

jonludlam
Copy link
Member

Math support currently doesn't work because odoc support-files doesn't actually write the vendored katex files. This PR fixes that.

Note that dune doesn't quite work yet with this as it's only expecting the original 2 files to be output, and while it will work with the first build, rebuilds don't work as expected. This is related to ocaml/dune#1556.

Copy link
Collaborator

@Julow Julow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me :)

src/vendor/dune Outdated
(setenv
SOURCE_DATE_EPOCH
0
(run ocaml-crunch . -e js -e css -e woff2 -o %{x}.corrected -m plain))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This prints something, which is not useful to know given how fast it runs.

Suggested change
(run ocaml-crunch . -e js -e css -e woff2 -o %{x}.corrected -m plain))
(run ocaml-crunch . -e js -e css -e woff2 -o %{x}.corrected -m plain -s))

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just tried this, but -s doesn't work on older crunches, so I'll revert.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well older crunches produce different output anyway, so that's not much help.

This isn't quite the right test, it should be on the version of
ocaml-crunch, but right now it has the behaviour we want.
@jonludlam jonludlam merged commit d36e4ca into ocaml:master Nov 28, 2022
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