From 5920b32ed58a73338dd686a70134a56af103ce00 Mon Sep 17 00:00:00 2001 From: Aaron Abbott Date: Thu, 11 May 2023 15:41:06 +0000 Subject: [PATCH] Add "Edit on Github" links for readthedocs As explained in https://docs.readthedocs.io/en/stable/guides/edit-source-links-sphinx.html --- docs/conf.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index 8ac89347..9c1236f8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -99,3 +99,11 @@ "sidebar_width": "320px", "body_max_width": "800px", } + +html_context = { + "display_github": True, # Integrate GitHub + "github_user": "GoogleCloudPlatform", # Username + "github_repo": "opentelemetry-operations-python", # Repo name + "github_version": "main", # Version + "conf_py_path": "/docs/", # Path in the checkout to the docs root +}