summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2024-06-16 12:51:17 (GMT)
committerGitHub <noreply@github.com>2024-06-16 12:51:17 (GMT)
commitb8484c6ad7fd14ca464e584b79821b4b906dd77a (patch)
tree7223e160ad03c1664373e5e39f318e4dcc7b9d27
parent192d17c3fd9945104bc0303cf248bb0d074d260e (diff)
downloadcpython-b8484c6ad7fd14ca464e584b79821b4b906dd77a.zip
cpython-b8484c6ad7fd14ca464e584b79821b4b906dd77a.tar.gz
cpython-b8484c6ad7fd14ca464e584b79821b4b906dd77a.tar.bz2
Docs: remove temporary hardcoded links (#120348)
-rw-r--r--Doc/tools/static/rtd_switcher.js35
1 files changed, 1 insertions, 34 deletions
diff --git a/Doc/tools/static/rtd_switcher.js b/Doc/tools/static/rtd_switcher.js
index a67bb85..f5dc704 100644
--- a/Doc/tools/static/rtd_switcher.js
+++ b/Doc/tools/static/rtd_switcher.js
@@ -6,42 +6,9 @@
document.addEventListener("readthedocs-addons-data-ready", function(event) {
const config = event.detail.data()
-
- // Add some mocked hardcoded versions pointing to the official
- // documentation while migrating to Read the Docs.
- // These are only for testing purposes.
- // TODO: remove them when managing all the versions on Read the Docs,
- // since all the "active, built and not hidden" versions will be shown automatically.
- let versions = config.versions.active.concat([
- {
- slug: "dev (3.14)",
- urls: {
- documentation: "https://docs.python.org/3.14/",
- }
- },
- {
- slug: "dev (3.13)",
- urls: {
- documentation: "https://docs.python.org/3.13/",
- }
- },
- {
- slug: "3.12",
- urls: {
- documentation: "https://docs.python.org/3.12/",
- }
- },
- {
- slug: "3.11",
- urls: {
- documentation: "https://docs.python.org/3.11/",
- }
- },
- ]);
-
const versionSelect = `
<select id="version_select">
- ${ versions.map(
+ ${ config.versions.active.map(
(version) => `
<option
value="${ version.slug }"