From 5758f86553ea2fff33c4d349d534370d0fcf86c6 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Thu, 27 Jan 2022 19:12:45 +0800 Subject: [PATCH] docs: remove mention that CDN resources are caches cross-domain --- .cspell.json | 3 ++- .../markdown-features/markdown-features-math-equations.mdx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.cspell.json b/.cspell.json index 0724507f38d5..1568d10a3c6f 100644 --- a/.cspell.json +++ b/.cspell.json @@ -30,7 +30,8 @@ "website/src/data/users.tsx", "*.xyz", "*.docx", - "versioned_docs" + "versioned_docs", + "*.min.*" ], "ignoreRegExpList": ["Email", "Urls", "#[\\w-]*"] } diff --git a/website/docs/guides/markdown-features/markdown-features-math-equations.mdx b/website/docs/guides/markdown-features/markdown-features-math-equations.mdx index 8fe77c0c4968..6a89932b572b 100644 --- a/website/docs/guides/markdown-features/markdown-features-math-equations.mdx +++ b/website/docs/guides/markdown-features/markdown-features-math-equations.mdx @@ -130,7 +130,7 @@ module.exports = { ## Self-hosting KaTeX assets -Loading stylesheets, fonts, and javascript libraries from CDN sources is a good practice for popular libraries and assets. If the same assets are used across various websites, they will be cached by the browser instead of being downloaded every time we visit a new website, reducing network load. In case you prefer to self-host the `katex.min.css` (along with required KaTeX fonts), you can download the latest version from [KaTeX GitHub releases](https://github.com/KaTeX/KaTeX/releases), extract and copy `katex.min.css` and `fonts` directory (only `.woff2` font types should be enough) to your site's `static` directory, and in `docusaurus.config.js`, replace the stylesheet's `href` from the CDN url to your local path (say, `/katex/katex.min.css`). +Loading stylesheets, fonts, and javascript libraries from CDN sources is a good practice for popular libraries and assets, since it reduces the amount of assets you have to host. In case you prefer to self-host the `katex.min.css` (along with required KaTeX fonts), you can download the latest version from [KaTeX GitHub releases](https://github.com/KaTeX/KaTeX/releases), extract and copy `katex.min.css` and `fonts` directory (only `.woff2` font types should be enough) to your site's `static` directory, and in `docusaurus.config.js`, replace the stylesheet's `href` from the CDN url to your local path (say, `/katex/katex.min.css`). ```js title="docusaurus.config.js" module.exports = {