mirror of
https://github.com/python/cpython
synced 2024-09-15 22:10:19 +00:00
Docs: remove temporary hardcoded links (#120348)
This commit is contained in:
parent
192d17c3fd
commit
b8484c6ad7
|
@ -6,42 +6,9 @@
|
||||||
|
|
||||||
document.addEventListener("readthedocs-addons-data-ready", function(event) {
|
document.addEventListener("readthedocs-addons-data-ready", function(event) {
|
||||||
const config = event.detail.data()
|
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 = `
|
const versionSelect = `
|
||||||
<select id="version_select">
|
<select id="version_select">
|
||||||
${ versions.map(
|
${ config.versions.active.map(
|
||||||
(version) => `
|
(version) => `
|
||||||
<option
|
<option
|
||||||
value="${ version.slug }"
|
value="${ version.slug }"
|
||||||
|
|
Loading…
Reference in a new issue