docs: Add Edit on GitHub (#7058)

This commit is contained in:
Laerte Pereira 2025-09-28 05:16:47 -03:00 committed by GitHub
parent 393d715205
commit f2531808f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -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", "")