mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-11 05:58:40 +00:00
* Modernize font creation * Automate the build process, instead of writing a complicated manual * Update sources used by the docker image away from google code * Exclude MathJax-dev checkout from docker image, to allow image reuse * Try to keep the individual image layers small by combining RUN commands and removing temporary files used only during each individual step * Allow creating fonts from local directory Also use hash of Dockerfile to compute image tag, in order to ensure creation of a new image if the Dockerfile changes. * make glob syntax work on MacOS
23 lines
956 B
Markdown
23 lines
956 B
Markdown
### How to generate MathJax fonts
|
|
---------------------------------
|
|
|
|
The `buildFonts.sh` script should do everything automatically,
|
|
as long as Docker is installed.
|
|
|
|
If you want to try out a change
|
|
to [the MathJax-dev repository](https://github.com/Khan/MathJax-dev),
|
|
create a local clone (or download and unpack the ZIP file)
|
|
and specify the path to this directory as an arument to `buildFonts.sh`.
|
|
You can also specify a local or remote tarball,
|
|
e.g. a GitHub download of your own personal feature branch.
|
|
|
|
The script `buildFonts.sh` automatically creates Docker images
|
|
from the supplied `Dockerfile`.
|
|
It uses the hash of the file to tag the image, so a change to the file
|
|
will result in the creation of a new image.
|
|
If you want to see all created images, run `docker images katex/fonts`.
|
|
To remove all generated images, you can run
|
|
`docker rmi $(docker images --format '{{.Repository}}:{{.Tag}}' katex/fonts)`.
|
|
|
|
If there is a problem, file a bug report.
|