Replace dockers/MathJaxFonts with KaTeX/katex-fonts submodule#891
Replace dockers/MathJaxFonts with KaTeX/katex-fonts submodule#891
Conversation
|
After replacing |
|
The code changes look fine to me. I'm not too familiar with submodules, but it seems like they add some extra overhead. In particular (gathered from https://medium.com/@porteneuve/mastering-git-submodules-34c65e940407):
Should the readme be updated to help contributers understand how to work with the new submodule for fonts? |
|
I have a few git aliases set to help with managing submodules: I agree that it definitely adds additional overhead. Another option would be to turn the new font repo into a npm module. |
|
Hmm, an npm module is an interesting idea. The copying of fonts to |
|
I agree it's an interesting idea. Would there be any concerns with turning that code into an npm module? |
|
Although I made the suggestion, I have a couple concerns about using npm modules:
|
|
FWIW, I do feel like it's good to optimize for people who don't care about (developing) the fonts, and there is a slight advantage there. On the other hand, it doesn't take much training to learn |
|
Back to the PR, did you test |
|
@edemaine the release script runs |
|
I'll double check |
|
After having thought of it a little more, I think using a submodule should serve just fine. I'm finding it hard to think how you'd use semver for a font repo. It just feels a little odd. The code here looks fine, have you had a chance to test via |
😭 just been really busy with other stuff lately. Running |
cdc48d6 to
2cc45dd
Compare
|
I'm going to take @rrandallcainc's suggestion of updating CONTRIBUTING.md to provide some tips on how to deal with submodules. |
|
@rrandallcainc I've added a section to CONTRIBUTING.md title "Working with submodules". |
ry-randall
left a comment
There was a problem hiding this comment.
Looks good to me 👍. Thanks for updating contributing.md

Fixes #816.
I ran
make buildto verify that the build script grabs the fonts from the new submodule. The release script should remain unchanged because it has everything it needs in thebuildfolder.