Skip to content

Commit 85c4ad6

Browse files
authored
Add "Edit on Github" links for readthedocs (#246)
As explained in https://docs.readthedocs.io/en/stable/guides/edit-source-links-sphinx.html
1 parent 3122dc8 commit 85c4ad6

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

docs/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,11 @@
9999
"sidebar_width": "320px",
100100
"body_max_width": "800px",
101101
}
102+
103+
html_context = {
104+
"display_github": True, # Integrate GitHub
105+
"github_user": "GoogleCloudPlatform", # Username
106+
"github_repo": "opentelemetry-operations-python", # Repo name
107+
"github_version": "main", # Version
108+
"conf_py_path": "/docs/", # Path in the checkout to the docs root
109+
}

0 commit comments

Comments
 (0)