From a1cb64e78eba1696e04423ebc275ba7098ef28cd Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 6 Nov 2013 14:40:07 +0100 Subject: [PATCH] demo: Add source code links to API docs --- demo_docs/source/conf.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/demo_docs/source/conf.py b/demo_docs/source/conf.py index 0c059188..ac160a14 100644 --- a/demo_docs/source/conf.py +++ b/demo_docs/source/conf.py @@ -29,8 +29,9 @@ sys.path.append(os.path.abspath('./test_py_module')) # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [ - 'sphinx.ext.autodoc', - 'sphinx.ext.mathjax', + 'sphinx.ext.autodoc', + 'sphinx.ext.mathjax', + 'sphinx.ext.viewcode', ] # Math @@ -156,7 +157,7 @@ html_theme_path = ["../.."] #html_split_index = False # If true, links to the reST sources are added to the pages. -#html_show_sourcelink = True +html_show_sourcelink = True # If true, "Created using Sphinx" is shown in the HTML footer. Default is True. #html_show_sphinx = True