From 35f8f2ee3a68b13249437e80f992b33f31e58e68 Mon Sep 17 00:00:00 2001 From: YunShu Date: Wed, 30 Jul 2025 18:31:23 +0800 Subject: [PATCH] fix(docs): math formulas cannot be displayed normally Because `polyfill.io` is blocked see: https://blog.cloudflare.com/automatically-replacing-polyfill-io-links-with-cloudflares-mirror-for-a-safer-internet/ --- docs/mkdocs.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml index c8d73effb..a1814081f 100644 --- a/docs/mkdocs.yml +++ b/docs/mkdocs.yml @@ -73,13 +73,6 @@ nav: - blog/introduction.md - blog/1.md -markdown_extensions: - - pymdownx.highlight: - anchor_linenums: true - - pymdownx.inlinehilite - - pymdownx.snippets - - pymdownx.superfences - theme: name: material language: zh @@ -132,6 +125,11 @@ extra: link: https://join.slack.com/t/oceanbase/shared_invite/zt-1e25oz3ol-lJ6YNqPHaKwY_mhhioyEuw markdown_extensions: + - pymdownx.highlight: + anchor_linenums: true + - pymdownx.inlinehilite + - pymdownx.snippets + - pymdownx.superfences - toc: permalink: true - pymdownx.arithmatex: @@ -140,5 +138,6 @@ markdown_extensions: extra_javascript: - ./assets/mathjax.js - - https://polyfill.io/v3/polyfill.min.js?features=es6 + # - https://polyfill.io/v3/polyfill.min.js?features=es6 + - https://polyfill.alicdn.com/v3/polyfill.min.js?features=es6 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js