瀏覽代碼

docs: add extlinks to Sphinx extensions

Mikael Koli 4 年之前
父節點
當前提交
af513974a7
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8 2
      docs/conf.py

+ 8 - 2
docs/conf.py

@@ -33,7 +33,8 @@ extensions = [
     'sphinx.ext.autodoc', 
     'sphinx.ext.coverage', 
     'sphinx.ext.napoleon',
-    'sphinx_rtd_theme'
+    'sphinx_rtd_theme',
+    'sphinx.ext.extlinks',
 ]
 rst_prolog = """
 .. include:: <s5defs.txt>
@@ -81,4 +82,9 @@ html_static_path = ['_static']
 html_css_files = [
     'css/types.css',
     'css/colors.css',
-]
+]
+
+# Cross references
+extlinks = {
+    "stdlib": ("https://docs.python.org/3/library/%s", None)
+}