File tree 1 file changed +1
-34
lines changed
1 file changed +1
-34
lines changed Original file line number Diff line number Diff line change 6
6
7
7
document . addEventListener ( "readthedocs-addons-data-ready" , function ( event ) {
8
8
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
-
42
9
const versionSelect = `
43
10
<select id="version_select">
44
- ${ versions . map (
11
+ ${ config . versions . active . map (
45
12
( version ) => `
46
13
<option
47
14
value="${ version . slug } "
You can’t perform that action at this time.
0 commit comments