- 生成 MkDocs
- 主题 Material
- 发布 GitHub Pages
yang-xijie / yang-xijie.github.io Goto Github PK
View Code? Open in Web Editor NEW杨希杰的个人网站 [Material for MkDocs]
Home Page: https://yang-xijie.github.io
License: Creative Commons Attribution 4.0 International
杨希杰的个人网站 [Material for MkDocs]
Home Page: https://yang-xijie.github.io
License: Creative Commons Attribution 4.0 International
杨老师您好,因为近期有构建个人在线文档和博客的需求,在B站上看了您的MkDocs教程,目前看来比较安好,除了数学符号。
markdown_extensions
和extra_javascript
两个部分,也创建了mathjax.js文件并挂在了mkdocs.yml里,但数学公式测试不能渲染。unpkg.com/...
的那一个,并且按照规范将所有的现有网页挂在mkdocs.yml的nav
下,mathjax.js
规定的行内和行外公式分别由\( ... \)
和\[ ... \]
引导,而我个人的习惯是$ ... $
和$$ ... $$
,我于是修改了该文件中的对应两行,刷新后仍然未果。现在我不知道该怎么解决该问题了,我将相关代码贴在下面,希望您能指点一二:
mkdocs.yml中的相关部分:
markdown_extensions:
- pymdownx.arithmatex:
generic: true
- pymdownx.superfences
extra_javascript:
- javascripts/mathjax.js # 该文件的相对位置是"docs/javascripts/mathjax.js"
- https://polyfill.io/v3/polyfill.min.js?features=es6
- https://unpkg.com/mathjax@3/es5/tex-mml-chtml.js
mathjax.js,除以下两行外,其他内容与您仓库中对应文件一致。
inlineMath: [["$", "$"]],
displayMath: [["$$", "$$"]],
感谢你的VScode课程,很有帮助!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.