Skip to content

Commit 96b784b

Browse files
[3.13] Docs: remove temporary hardcoded links (GH-120348) (#120587)
Docs: remove temporary hardcoded links (GH-120348) (cherry picked from commit b8484c6) Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent f2a4540 commit 96b784b

File tree

1 file changed

+1
-34
lines changed

1 file changed

+1
-34
lines changed

Doc/tools/static/rtd_switcher.js

+1-34
Original file line numberDiff line numberDiff line change
@@ -6,42 +6,9 @@
66

77
document.addEventListener("readthedocs-addons-data-ready", function(event) {
88
const config = event.detail.data()
9-
10-
// Add some mocked hardcoded versions pointing to the official
11-
// documentation while migrating to Read the Docs.
12-
// These are only for testing purposes.
13-
// TODO: remove them when managing all the versions on Read the Docs,
14-
// since all the "active, built and not hidden" versions will be shown automatically.
15-
let versions = config.versions.active.concat([
16-
{
17-
slug: "dev (3.14)",
18-
urls: {
19-
documentation: "https://docs.python.org/3.14/",
20-
}
21-
},
22-
{
23-
slug: "dev (3.13)",
24-
urls: {
25-
documentation: "https://docs.python.org/3.13/",
26-
}
27-
},
28-
{
29-
slug: "3.12",
30-
urls: {
31-
documentation: "https://docs.python.org/3.12/",
32-
}
33-
},
34-
{
35-
slug: "3.11",
36-
urls: {
37-
documentation: "https://docs.python.org/3.11/",
38-
}
39-
},
40-
]);
41-
429
const versionSelect = `
4310
<select id="version_select">
44-
${ versions.map(
11+
${ config.versions.active.map(
4512
(version) => `
4613
<option
4714
value="${ version.slug }"

0 commit comments

Comments
 (0)