You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by ca...@apache.org on 2022/09/15 02:02:04 UTC

[incubator-linkis-website] branch dev updated: Add link check (#510)

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

casion pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-linkis-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new 2d01a719cc Add link check (#510)
2d01a719cc is described below

commit 2d01a719cce9f2e9789e6365efd9873764fb22ec
Author: Casion <ca...@gmail.com>
AuthorDate: Thu Sep 15 10:01:59 2022 +0800

    Add link check (#510)
    
    * update matomo.js
    
    * add link check
---
 .github/workflows/link.yml | 20 ++++++++++++++++++++
 static/script/matomo.js    | 19 ++++++++-----------
 2 files changed, 28 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/link.yml b/.github/workflows/link.yml
new file mode 100644
index 0000000000..94a9306e60
--- /dev/null
+++ b/.github/workflows/link.yml
@@ -0,0 +1,20 @@
+name: Markdown Lint
+
+on:
+  pull_request:
+    branches: [dev,dev-*]
+  push:
+    branches: [dev,dev-*]
+
+jobs:
+  markdownlint:
+    name: 🍇 Markdown
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2.3.4
+      - uses: actions/setup-node@v2.2.0
+        with:
+          node-version: 14
+
+      - run: npm install -g markdownlint-cli@0.25.0
+      - run: markdownlint '**/*.md' --ignore node_modules
\ No newline at end of file
diff --git a/static/script/matomo.js b/static/script/matomo.js
index a24dee3539..a21343003b 100644
--- a/static/script/matomo.js
+++ b/static/script/matomo.js
@@ -17,20 +17,17 @@
  * under the License.
  */
 
-var _paq = (window._paq = window._paq || []);
+var _paq = window._paq = window._paq || [];
 /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
 /* We explicitly disable cookie tracking to avoid privacy issues */
 _paq.push(['disableCookies']);
+/* Measure a visit to flink.apache.org and nightlies.apache.org/flink as the same visit */
 _paq.push(['trackPageView']);
 _paq.push(['enableLinkTracking']);
-(function () {
-  var u = 'https://analytics.apache.org/';
-  _paq.push(['setTrackerUrl', u + 'matomo.php']);
-  _paq.push(['setSiteId', '22']);
-  var d = document,
-    g = d.createElement('script'),
-    s = d.getElementsByTagName('script')[0];
-  g.async = true;
-  g.src = u + 'matomo.js';
-  s.parentNode.insertBefore(g, s);
+(function() {
+var u="//analytics.apache.org/";
+_paq.push(['setTrackerUrl', u+'matomo.php']);
+_paq.push(['setSiteId', '29']);
+var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
+g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
 })();
\ No newline at end of file


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