From 83ca470f1e048fbe280e2ae7843856b4aa976aeb Mon Sep 17 00:00:00 2001 From: Marcelo Fernandes Date: Mon, 16 Sep 2024 20:10:00 +1200 Subject: [PATCH] Add Edit On Github button This button should show up at the top-right on the Read The Docs template. This fixes the problem with the current button showing "View page source" which displays the raw .rst file backing up the page. --- docs/conf.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 20bc26d..a3a37bf 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -15,3 +15,10 @@ extensions = ["sphinx_rtd_theme"] html_theme = "sphinx_rtd_theme" + +html_context = { + "display_github": True, + "github_user": "kraken-tech", + "github_repo": "django-pg-migration-tools", + "github_version": "main/docs/", +}