From 9e59321aba6e9c0492fb759a1ff87d04a6210e56 Mon Sep 17 00:00:00 2001 From: Adarsh Date: Sat, 24 Feb 2024 22:30:22 +0530 Subject: [PATCH] [Feat] Added Edit on GitHub BUtton --- docs/source/conf.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 57b02e9..b14b29c 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -103,7 +103,15 @@ html_theme_options = { "github_url": "https://osipi.github.io/pypi", "collapse_navigation": True, - } + "use_edit_page_button": True, +} +html_context = { + "github_url": "https://github.com", + "github_user": "OSIPI", + "github_repo": "pypi", + "github_version":"dev", + "doc_path": "docs/source", +} # Add any paths that contain custom static files (such as style sheets) here, relative to this directory. They are copied after the builtin static files, so a file named "default.css" will overwrite the builtin "default.css" html_static_path = ['_static']