You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pekko.apache.org by fa...@apache.org on 2023/07/24 18:06:24 UTC

[incubator-pekko-grpc] branch main updated: remove old javascript files (#114)

This is an automated email from the ASF dual-hosted git repository.

fanningpj pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-pekko-grpc.git


The following commit(s) were added to refs/heads/main by this push:
     new 9c381ecb remove old javascript files (#114)
9c381ecb is described below

commit 9c381ecb3bd6cae4c876d4e9f8894710ad2340d8
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Mon Jul 24 19:06:19 2023 +0100

    remove old javascript files (#114)
---
 .../paradox/_template/projectSpecificFooter.st     |  4 ----
 docs/src/main/paradox/assets/js/warnOldVersion.js  | 23 ----------------------
 2 files changed, 27 deletions(-)

diff --git a/docs/src/main/paradox/_template/projectSpecificFooter.st b/docs/src/main/paradox/_template/projectSpecificFooter.st
deleted file mode 100644
index c4a9441f..00000000
--- a/docs/src/main/paradox/_template/projectSpecificFooter.st
+++ /dev/null
@@ -1,4 +0,0 @@
-<script type="text/javascript" src="$page.base$assets/js/warnOldVersion.js"></script>
-<script type="text/javascript">//<![CDATA[
-jQuery(function(jq){initOldVersionWarnings(jq, '$page.properties.("project.version")$', '$page.properties.("project.url")$')});
-//]]></script>
diff --git a/docs/src/main/paradox/assets/js/warnOldVersion.js b/docs/src/main/paradox/assets/js/warnOldVersion.js
deleted file mode 100644
index 39da3c3c..00000000
--- a/docs/src/main/paradox/assets/js/warnOldVersion.js
+++ /dev/null
@@ -1,23 +0,0 @@
-function initOldVersionWarnings($, thisVersion, projectUrl) {
-    if (projectUrl && projectUrl !== "") {
-        var schemeLessUrl = projectUrl;
-        if (projectUrl.startsWith("http://")) projectUrl = schemeLessUrl.substring(5);
-        else if (projectUrl.startsWith("https://")) projectUrl = schemeLessUrl.substring(6);
-        const url = schemeLessUrl + (schemeLessUrl.endsWith("\/") ? "" : "/") + "paradox.json";
-        $.get(url, function (versionData) {
-            const currentVersion = versionData.version;
-            if (thisVersion !== currentVersion) {
-                showVersionWarning(thisVersion, currentVersion, projectUrl);
-            }
-        });
-    }
-}
-
-function showVersionWarning(thisVersion, currentVersion, projectUrl) {
-    $('#docs').prepend(
-        '<div class="callout warning" style="margin-top: 16px">' +
-        '<p><span style="font-weight: bold">This documentation regards version ' + thisVersion + ', ' +
-        'however the current version is <a href="' + projectUrl + '">' + currentVersion + '</a>.</span></p>' +
-        '</div>'
-    );
-}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pekko.apache.org
For additional commands, e-mail: commits-help@pekko.apache.org