首页 > Python-Sphinx启用了Pygments作为代码高亮插件,为何生成实际html文档, 不起作用, 甚至内容没有?

Python-Sphinx启用了Pygments作为代码高亮插件,为何生成实际html文档, 不起作用, 甚至内容没有?

学习Sphinx相关语法时,开启了conf.py中的高亮插件,为何不起作用

[资源/截图/dump]
https://gist.github.com/ming2281/3c62805b5c05cd7838126be8992d707d
文件有前面的搜索提示

有影响的几行

pygments_style = 'sphinx'

我的rst内容如下
.. highlight:: python
    :linenos:
    def add(a,b):
        return a+b

.. code-block:: python
    :linenothreshold: 2
    def AAAA(a,b,c):
        for num in nums:
            print(Num)
【热门文章】
【热门文章】