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/25 09:06:36 UTC

[incubator-pekko-persistence-r2dbc] branch main updated: remove old js files (#46)

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-persistence-r2dbc.git


The following commit(s) were added to refs/heads/main by this push:
     new c89afdc  remove old js files (#46)
c89afdc is described below

commit c89afdcab3c6b8799cc1fbb9e317503c892dafbe
Author: PJ Fanning <pj...@users.noreply.github.com>
AuthorDate: Tue Jul 25 10:06:31 2023 +0100

    remove old js files (#46)
---
 .../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 c4a9441..0000000
--- 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 39da3c3..0000000
--- 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