mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
[3.13] Add Plausible for docs metrics (GH-119977) (#120193)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
parent
56a7e04834
commit
0e6605f633
2 changed files with 5 additions and 1 deletions
|
@ -339,7 +339,8 @@ repository_url = os.getenv("READTHEDOCS_GIT_CLONE_URL")
|
|||
html_context = {
|
||||
"is_deployment_preview": os.getenv("READTHEDOCS_VERSION_TYPE") == "external",
|
||||
"repository_url": repository_url.removesuffix(".git") if repository_url else None,
|
||||
"pr_id": os.getenv("READTHEDOCS_VERSION")
|
||||
"pr_id": os.getenv("READTHEDOCS_VERSION"),
|
||||
"enable_analytics": os.getenv("PYTHON_DOCS_ENABLE_ANALYTICS"),
|
||||
}
|
||||
|
||||
# This 'Last updated on:' timestamp is inserted at the bottom of every page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue