浏览代码

docs: Fix sphinx import error on Python 3.10+

PatTheMav 3 年之前
父节点
当前提交
e1f312feb3
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      docs/sphinx/conf.py
  2. 1 1
      docs/sphinx/requirements.txt

+ 2 - 2
docs/sphinx/conf.py

@@ -35,10 +35,10 @@ extensions = [
     "sphinx.ext.autodoc",
     "sphinx.ext.coverage",
     "sphinx.ext.viewcode",
+    "sphinx.ext.napoleon",
     "sphinx_rtd_theme",
-    "sphinxcontrib.napoleon",
     "sphinx.ext.autosectionlabel",
-    "sphinx.ext.extlinks"
+    "sphinx.ext.extlinks",
 ]
 
 # Add any paths that contain templates here, relative to this directory.

+ 1 - 1
docs/sphinx/requirements.txt

@@ -1,2 +1,2 @@
+sphinx>=1.3
 sphinx_rtd_theme>=0.5.2
-sphinxcontrib-napoleon>=0.7