Adding a javascript script tag some place so that it works for every file in sphinx documentation

后端 未结 5 1062
野的像风
野的像风 2020-12-24 14:59

I am using Sphinx to write some notes. I am using the Mathjax extension for Math in the notes. The default size of the math is little larger than I would like. On the Mathja

5条回答
  •  青春惊慌失措
    2020-12-24 15:40

    This can be done with a template:

    1. Create a folder called templates in the Sphinx project directory.

    2. In conf.py, add

      templates_path = ["templates"]
      
    3. In the templates directory, create a file called layout.html with the following contents:

      {% extends "!layout.html" %}
      
      {%- block extrahead %} 
             
      {% endblock %}
      

    The

提交回复
热议问题