Skip to content

Commit

Permalink
Docs: remove temporary hardcoded links (python#120348)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored and noahbkim committed Jul 11, 2024
1 parent fec1185 commit 8ea28f7
Showing 1 changed file with 1 addition and 34 deletions.
35 changes: 1 addition & 34 deletions Doc/tools/static/rtd_switcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }"
Expand Down

0 comments on commit 8ea28f7

Please sign in to comment.