File tree Expand file tree Collapse file tree 4 files changed +51
-47
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +51
-47
lines changed
Original file line number Diff line number Diff line change @@ -1006,15 +1006,24 @@ div.viewcode-block:target {
1006
1006
1007
1007
}
1008
1008
1009
- .sidebar-announcement {
1009
+ .sidebar-announcement ,
1010
+ .sidebar-versions {
1010
1011
border : 1px solid # 11557C ;
1011
1012
background : # eff9ff ;
1012
- padding : 2px ;
1013
+ padding : 0.2em 0.5em ;
1014
+ margin-top : 1em ;
1015
+ }
1016
+
1017
+ .sidebar-announcement {
1013
1018
margin-top : 40px ;
1014
1019
}
1015
1020
1021
+ .sidebar-versions {
1022
+ margin-top : 1em ;
1023
+ }
1024
+
1016
1025
.sidebar-announcement p {
1017
- margin : 0.4em 0.4 em 0.6em 0.4 em ;
1026
+ margin : 0.4em 0 0.6em 0 ;
1018
1027
}
1019
1028
1020
1029
/* new main nav */
Original file line number Diff line number Diff line change
1
+ < div class ="sidebar-versions ">
2
+ < script >
3
+ function getSnippet ( id , url ) {
4
+ var req = false ;
5
+ // For Safari, Firefox, and other non-MS browsers
6
+ if ( window . XMLHttpRequest ) {
7
+ try {
8
+ req = new XMLHttpRequest ( ) ;
9
+ } catch ( e ) {
10
+ req = false ;
11
+ }
12
+ } else if ( window . ActiveXObject ) {
13
+ // For Internet Explorer on Windows
14
+ try {
15
+ req = new ActiveXObject ( "Msxml2.XMLHTTP" ) ;
16
+ } catch ( e ) {
17
+ try {
18
+ req = new ActiveXObject ( "Microsoft.XMLHTTP" ) ;
19
+ } catch ( e ) {
20
+ req = false ;
21
+ }
22
+ }
23
+ }
24
+ var element = document . querySelector ( ".sidebar-versions" ) ;
25
+ if ( req ) {
26
+ // Synchronous request, wait till we have it all
27
+ req . open ( 'GET' , url , false ) ;
28
+ req . send ( null ) ;
29
+ if ( req . status == 200 ) {
30
+ element . innerHTML = req . responseText ;
31
+ } else {
32
+ element . innerHTML = "<mark>Could not find Snippet to insert at " + url + "</mark>"
33
+ }
34
+ }
35
+ }
36
+ getSnippet ( 'other_versions' , '/versions.html' ) ;
37
+ </ script >
38
+ </ div >
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ def _check_deps():
263
263
264
264
# Custom sidebar templates, maps page names to templates.
265
265
html_sidebars = {
266
- 'index' : ['searchbox.html' , 'sidebar_announcement.html' ,
266
+ 'index' : ['searchbox.html' , 'sidebar_announcement.html' , 'sidebar_versions.html' ,
267
267
'donate_sidebar.html' ],
268
268
'**' : ['searchbox.html' , 'localtoc.html' , 'relations.html' ,
269
269
'pagesource.html' ]
Original file line number Diff line number Diff line change @@ -54,51 +54,8 @@ Visit the :doc:`Matplotlib installation instructions <users/installing>`.
54
54
Documentation
55
55
-------------
56
56
57
- This is the documentation for Matplotlib version |version |.
58
-
59
57
To get started, read the :doc: `User's Guide <users/index >`.
60
58
61
- .. raw :: html
62
-
63
- <p id =" other_versions" ></p >
64
-
65
- <script >
66
- function getSnippet (id , url ) {
67
- var req = false ;
68
- // For Safari, Firefox, and other non-MS browsers
69
- if (window .XMLHttpRequest ) {
70
- try {
71
- req = new XMLHttpRequest ();
72
- } catch (e) {
73
- req = false ;
74
- }
75
- } else if (window .ActiveXObject ) {
76
- // For Internet Explorer on Windows
77
- try {
78
- req = new ActiveXObject (" Msxml2.XMLHTTP" );
79
- } catch (e) {
80
- try {
81
- req = new ActiveXObject (" Microsoft.XMLHTTP" );
82
- } catch (e) {
83
- req = false ;
84
- }
85
- }
86
- }
87
- var element = document .getElementById (id);
88
- if (req) {
89
- // Synchronous request, wait till we have it all
90
- req .open (' GET' , url, false );
91
- req .send (null );
92
- if (req .status == 200 ) {
93
- element .innerHTML = req .responseText ;
94
- } else {
95
- element .innerHTML = " <mark>Could not find Snippet to insert at " + url + " </mark>"
96
- }
97
- }
98
- }
99
- getSnippet (' other_versions' , ' /versions.html' );
100
- </script >
101
-
102
59
Trying to learn how to do a particular kind of plot? Check out the
103
60
:doc: `examples gallery <gallery/index >` or the :doc: `list of plotting commands
104
61
<api/pyplot_summary>`.
You can’t perform that action at this time.
0 commit comments