浏览代码

Merge pull request #5934 from YuriSizov/3.1-is-out-of-beta

Rémi Verschelde 3 年之前
父节点
当前提交
35ad0f08bf
共有 1 个文件被更改,包括 0 次插入27 次删除
  1. 0 27
      _static/js/custom.js

+ 0 - 27
_static/js/custom.js

@@ -1,9 +1,3 @@
-
-// Set this to `true` when the `latest` branch is significantly incompatible with the
-// current `stable` branch, which can lead to confusion for users that land on
-// `latest` instead of `stable`.
-const inDev = true;
-
 // Handle page scroll and adjust sidebar accordingly.
 // Handle page scroll and adjust sidebar accordingly.
 
 
 // Each page has two scrolls: the main scroll, which is moving the content of the page;
 // Each page has two scrolls: the main scroll, which is moving the content of the page;
@@ -208,27 +202,6 @@ $(document).ready(() => {
     registerOnScrollEvent(mediaQuery);
     registerOnScrollEvent(mediaQuery);
   });
   });
 
 
-  if (inDev) {
-    // Add a compatibility notice using JavaScript so it doesn't end up in the
-    // automatically generated `meta description` tag.
-    const strippedUrl = [location.protocol, '//', location.host, location.pathname].join('');
-    const updatedUrl = strippedUrl.replace('/latest/', '/stable/');
-    document.querySelector('div[itemprop="articleBody"]').insertAdjacentHTML('afterbegin', `
-      <div class="admonition attention">
-        <p class="first admonition-title">Attention</p>
-        <p>
-          You are reading the <code class="docutils literal notranslate"><span class="pre">latest</span></code>
-          (unstable) version of this documentation, which may document features not available
-          or compatible with Godot 3.2.x.
-        </p>
-        <p class="last">
-          See <a class="reference" href="${updatedUrl}">this page</a>
-          for the stable version of this documentation.
-        </p>
-      </div>
-    `);
-  }
-
   // Load instant.page to prefetch pages upon hovering. This makes navigation feel
   // Load instant.page to prefetch pages upon hovering. This makes navigation feel
   // snappier. The script is dynamically appended as Read the Docs doesn't have
   // snappier. The script is dynamically appended as Read the Docs doesn't have
   // a way to add scripts with a "module" attribute.
   // a way to add scripts with a "module" attribute.