File tree Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Expand file tree Collapse file tree 1 file changed +1
-34
lines changed Original file line number Diff line number Diff line change 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 } "
You can’t perform that action at this time.
0 commit comments