File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 1919<!-- Meow woof -->
2020< script >
2121window . onload = function ( ) {
22+
23+ $ . getJSON ( 'https://pypi.org/pypi/astropy/json' , function ( data ) {
24+ document . getElementById ( 'core-package-version' ) . innerHTML = 'Current Version: ' + data . info . version ;
25+ } ) ;
26+
27+
2228 var today = new Date ( ) ;
2329 var month = today . getMonth ( ) + 1 ;
2430 var date = today . getDate ( ) ;
3541 dogeImg . src = 'images/astropy_doge.png' ;
3642 dogeImg . alt = 'wow so open very python' ;
3743 }
44+
3845} ;
3946</ script >
4047
104111
105112< section class ="whatsnew "> < div id ="prenew "> </ div >
106113 What's new in < a href ="http://docs.astropy.org/en/stable/whatsnew/5.0.html "> Astropy 5.0?</ a >
107- < p class ="version "> Current Version: 5.0.1 </ p >
114+ < p class ="version " id =" core-package-version " > </ p >
108115
109116</ section >
110117
You can’t perform that action at this time.
0 commit comments