From 1c95aa4e8dd992e46adbd82cd4acfb09364f83a9 Mon Sep 17 00:00:00 2001 From: Loup-Garou911XD Date: Sun, 28 Apr 2024 11:46:06 +0530 Subject: [PATCH] added view source option to sphinx docs --- src/assets/sphinx/static/conf.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/assets/sphinx/static/conf.py b/src/assets/sphinx/static/conf.py index 79dd4e7b..fd826ef0 100644 --- a/src/assets/sphinx/static/conf.py +++ b/src/assets/sphinx/static/conf.py @@ -76,11 +76,12 @@ rst_prolog = f""" :target: index.html :alt: Ballistica Logo """ -intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} +# intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} autosummary_generate = True extensions = [ - 'sphinx.ext.napoleon', # https://stackoverflow.com/questions/45880348/how-to-remove-the-cause-of-an-unexpected-indentation-warning-when-generating-cod + 'sphinx.ext.napoleon', 'sphinx.ext.autodoc', + 'sphinx.ext.viewcode', # might want to use this in future # for linking with efro and bacommon packages 'sphinx.ext.intersphinx',