Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b8484c6

Browse filesBrowse files
authored
Docs: remove temporary hardcoded links (#120348)
1 parent 192d17c commit b8484c6
Copy full SHA for b8484c6

File tree

1 file changed

+1
-34
lines changed
Filter options

1 file changed

+1
-34
lines changed

‎Doc/tools/static/rtd_switcher.js

Copy file name to clipboardExpand all lines: Doc/tools/static/rtd_switcher.js
+1-34Lines changed: 1 addition & 34 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.