Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

docs: Add Edit on GitHub (#7058)

Laerte Pereiraf2531808f3b0
diff --git a/docs/conf.py b/docs/conf.py
index 0345ec695..5c5926dbe 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -68,6 +68,14 @@ html_css_files = [
"custom.css",
]
+html_context = {
+ "display_github": True,
+ "github_user": "scrapy",
+ "github_repo": "scrapy",
+ "github_version": "master",
+ "conf_py_path": "/docs/",
+}
+
# Set canonical URL from the Read the Docs Domain
html_baseurl = os.environ.get("READTHEDOCS_CANONICAL_URL", "")