https://github.com/python/cpython/commit/96b784b61fdf4b18e6e4420bd3835942e0fce750
commit: 96b784b61fdf4b18e6e4420bd3835942e0fce750
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: hugovk <[email protected]>
date: 2024-06-16T13:07:27Z
summary:

[3.13] Docs: remove temporary hardcoded links (GH-120348) (#120587)

Docs: remove temporary hardcoded links (GH-120348)
(cherry picked from commit b8484c6ad7fd14ca464e584b79821b4b906dd77a)

Co-authored-by: Hugo van Kemenade <[email protected]>

files:
M Doc/tools/static/rtd_switcher.js

diff --git a/Doc/tools/static/rtd_switcher.js b/Doc/tools/static/rtd_switcher.js
index a67bb85505a9ca..f5dc7045a0dbc4 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 }"

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]

Reply via email to