Giter VIP home page Giter VIP logo

yang-xijie.github.io's Introduction

yang-xijie.github.io's People

Contributors

yang-xijie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

yang-xijie.github.io's Issues

将MathJax引入到MkDocs框架中的问题

杨老师您好,因为近期有构建个人在线文档和博客的需求,在B站上看了您的MkDocs教程,目前看来比较安好,除了数学符号。

  1. 根据Material for MkDocs文档的指引,我在mkdocs.yml里加入了markdown_extensionsextra_javascript两个部分,也创建了mathjax.js文件并挂在了mkdocs.yml里,但数学公式测试不能渲染。
  2. 进一步,根据您在该仓库下的相关设置和指引(MfM文档中给出的原有cdn无法使用),我将原有的cdn改为了unpkg.com/...的那一个,并且按照规范将所有的现有网页挂在mkdocs.yml的nav下,
  3. 考虑到原有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: [["$$", "$$"]],

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.