8000 docs: introduce KaTeX local copy plugin & Temml for math by tats-u · Pull Request #11115 · facebook/docusaurus · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

docs: introduce KaTeX local copy plugin & Temml for math #11115

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tats-u
Copy link
Contributor
@tats-u tats-u commented Apr 20, 2025

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior. N/A
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan. N/A

Motivation

It is a pain in the neck to manage and copy all .woff2 files of KaTeX in your repository to host them in your server.
My plugin https://npmjs.com/package/@tats-u/docusaurus-plugin-copy-katex-assets will be helpful and worth introduced.

Ideally, this kind of plugin should be managed by Docusaurus itself, not an outsider like me.

Also, Temml is better than KaTeX if you prefer extremely small download size or non Latin Modern Math fonts and also worth introduced.

https://www.npmjs.com/package/@daiji256/rehype-mathml can be used instead of rehype-katex to use Temml.

Test Plan

Test links

Deploy preview: https://deploy-preview-11115--docusaurus-2.netlify.app/docs/markdown-features/math-equations/#mathml

Backports:

https://deploy-preview-11115--docusaurus-2.netlify.app/docs/3.7.0/markdown-features/math-equations/#mathml
https://deploy-preview-11115--docusaurus-2.netlify.app/docs/3.6.3/markdown-features/math-equations/#mathml

Related issues/PRs

#11100

Copy link
netlify bot commented Apr 20, 2025

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 9842f67
🔍 Latest deploy log https://app.netlify.com/sites/docusaurus-2/deploys/68050a1593a71f000811f5f3
😎 Deploy Preview https://deploy-preview-11115--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
github-actions bot commented Apr 20, 2025

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 64 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🟠 50 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 72 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 60 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🔴 45 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 61 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 72 🟢 100 🟢 100 🟠 86 Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0