(function() { // taken from https://raw.githubusercontent.com/scikit-learn/scikit-learn.github.io/master/index.html // scikit-learn contributors var latestStable = '0.8'; var goodPaths = ['stable', 'dev', latestStable]; var showWarning = (msg) => { $('.body[role=main]').prepend( '

' + msg + '

') }; if (location.hostname == 'scikit-optimize.github.io/') { if (location.pathname == '/dev/versions.html') { // this page is specially generated and linked from all versions return; } var versionPath = location.pathname.split('/')[1]; if (!goodPaths.includes(versionPath)) { showWarning('This is documentation for an old release of ' + 'Scikit-optimize (version ' + versionPath + '). Try the ' + 'latest stable ' + 'release (version ' + latestStable + ') or ' + 'development ' + '(unstable) versions.') } else if (versionPath == 'dev') { showWarning('This is documentation for the unstable ' + 'development version of Scikit-optimize. ' + 'The latest stable ' + 'release is version ' + latestStable + '.') } } })()