From 6a3e91c8a2e01ab8a516b9f11be76c783e67827c Mon Sep 17 00:00:00 2001 From: jwansek Date: Tue, 24 May 2022 18:57:52 +0100 Subject: Added source code to docs sidebar --- docs/source/conf.py | 6 +++++- docs/source/index.rst | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'docs/source') diff --git a/docs/source/conf.py b/docs/source/conf.py index a168856..a55e222 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -35,8 +35,12 @@ extensions = [ 'sphinx.ext.coverage', 'sphinx.ext.napoleon', "sphinx_mdinclude", - 'sphinxarg.ext' + 'sphinxarg.ext', + "sphinx_toolbox.sidebar_links", + 'sphinx_toolbox.github' ] +github_username = 'jwansek' +github_repository = 'Smarker' # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] diff --git a/docs/source/index.rst b/docs/source/index.rst index 80fefaf..e4930f1 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -62,6 +62,9 @@ Also see :ref:`assessments` assessments.rst api.rst +.. sidebar-links:: + :caption: Source code: + :github: Indices and tables ================== @@ -69,3 +72,5 @@ Indices and tables * :ref:`genindex` * :ref:`modindex` * :ref:`search` +* `Source Code `_ +* `License `_ -- cgit v1.2.3