diff --git a/docs/about/test.md b/docs/about/test.md index 9b5a7a36a..e72c4f4e1 100644 --- a/docs/about/test.md +++ b/docs/about/test.md @@ -248,7 +248,15 @@ Wcowin - + +
+  graph LR
+      A --- B
+      B-->C[fa:fa-ban forbidden]
+      B-->D(fa:fa-spinner);
+    
+ + 来看看两个重要极限 diff --git a/docs/index.md b/docs/index.md index ff616448f..55d5acf34 100644 --- a/docs/index.md +++ b/docs/index.md @@ -57,3 +57,5 @@ comments: true + + diff --git a/docs/javascripts/extra.js b/docs/javascripts/extra.js index d49afc743..ca90795cd 100644 --- a/docs/javascripts/extra.js +++ b/docs/javascripts/extra.js @@ -1,3 +1,5 @@ +import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs'; +mermaid.initialize({ startOnLoad: true }); function displayDate(){ document.getElementById("demo").innerHTML=Date(); diff --git a/mkdocs.yml b/mkdocs.yml index 9c87291e4..2e1587944 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -319,7 +319,8 @@ markdown_extensions: permalink: "\ue157" extra_javascript: - - javascripts/extra.js + # - javascripts/extra.js + - https://cdn.jsdelivr.net/gh/Wcowin/Wcowin.github.io@main/docs/javascripts/extra.js # extra的cdn - javascripts/mathjax.js - https://polyfill.io/v3/polyfill.min.js?features=es6 - https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js @@ -328,10 +329,12 @@ extra_javascript: # - https://cdnjs.cloudflare.com/ajax/libs/social-share.js/1.0.16/js/social-share.min.js # - javascripts/backgroud.js # - javascripts/rellax.min.js + - https://cdn.jsdelivr.net/npm/mermaid@10.0.2/dist/add-html-label-6e56ed67.min.js extra_css: - - stylesheets/extra.css + # - stylesheets/extra.css + - https://cdn.jsdelivr.net/gh/Wcowin/Wcowin.github.io@main/docs/stylesheets/extra.css # extra.css的CDN - stylesheets/extra1.css - - stylesheets/video.css + # - stylesheets/video.css - https://unpkg.com/@waline/client@v2/dist/waline.css - https://cdn.jsdelivr.net/npm/gitalk@latest/dist/gitalk.css - ckplayer/css/ckplayer.css