add box in dev version of documentation
@@ -10,15 +10,15 @@ $(document).ready(function() {
var match = allText.match(/url=\.\.\/(.*)"/i);
var version = match[1];
var note = '<div class="admonition note"><p class="first admonition-title" style="background-color:red">Note</p>'
- note += '<p class="last">You are not reading the most up to date version of Gammapy '
- note += 'documentation.<br/>Access the <a href="https://docs.gammapy.org/'
+ note += '<p class="last">You are not reading the stable version of Gammapy '
+ note += 'documentation.<br/>Access the latest stable <a href="https://docs.gammapy.org/'
note += version
- note += '/">latest stable version v'
+ note += '/">version v'
note += version
note += '</a> or the <a href="https://gammapy.org/news.html#releases">list of Gammapy releases</a>.</p></div>'
var url = window.location.href
- if (url.includes("/dev/") == false && url.includes(version) == false ) {
+ if (url.includes(version) == false) {
var divbody = document.querySelectorAll('[role="main"]');
var divnote = document.createElement("div");
divnote.innerHTML = note;
