瀏覽代碼

Fixed #17238 -- Added source code links to docs using sphinx.ext.viewcode.

Thanks santiagobasulto for the suggestion.
Tim Graham 10 年之前
父節點
當前提交
9ed4a8c6b1
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/conf.py

+ 1 - 1
docs/conf.py

@@ -31,7 +31,7 @@ needs_sphinx = '1.0'
 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ["djangodocs", "sphinx.ext.intersphinx"]
+extensions = ["djangodocs", "sphinx.ext.intersphinx", "sphinx.ext.viewcode"]
 
 # Spelling check needs an additional module that is not installed by default.
 # Add it only if spelling check is requested so docs can be generated without it.