You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by sj...@apache.org on 2021/02/11 15:25:35 UTC
[flink] branch master updated: [hotfix][docs] reintroduce google
analytics and fix broken edit page
This is an automated email from the ASF dual-hosted git repository.
sjwiesman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 6bb746d [hotfix][docs] reintroduce google analytics and fix broken edit page
6bb746d is described below
commit 6bb746d25a2719e2511d04e88f75ad99238d406e
Author: Seth Wiesman <sj...@gmail.com>
AuthorDate: Thu Feb 11 09:25:09 2021 -0600
[hotfix][docs] reintroduce google analytics and fix broken edit page
---
docs/layouts/_default/baseof.html | 11 +++++++++++
docs/layouts/partials/docs/footer.html | 2 +-
docs/layouts/partials/docs/inject/head.html | 1 -
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/docs/layouts/_default/baseof.html b/docs/layouts/_default/baseof.html
index f615201..62573a8 100644
--- a/docs/layouts/_default/baseof.html
+++ b/docs/layouts/_default/baseof.html
@@ -65,6 +65,17 @@ under the License.
</main>
{{ partial "docs/inject/body" . }}
+
+ <!-- Google Analytics -->
+ <script>
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-52545728-1', 'auto');
+ ga('send', 'pageview');
+ </script>
</body>
</html>
diff --git a/docs/layouts/partials/docs/footer.html b/docs/layouts/partials/docs/footer.html
index a911e68..45aa36f 100644
--- a/docs/layouts/partials/docs/footer.html
+++ b/docs/layouts/partials/docs/footer.html
@@ -24,5 +24,5 @@ under the License.
{{ if eq "/zh" .Site.LanguagePrefix }}
{{ $folder = "content.zh" }}
{{ end }}
-<a href="{{ .Site.Params.Repo }}/edit/{{ .Site.Params.Branch }}/{{ $folder }}/{{ .File.Path }}" style="color:black"><i class="fa fa-edit fa-fw"></i>Edit This Page</a>
+<a href="{{ .Site.Params.Repo }}/edit/{{ .Site.Params.Branch }}/docs/{{ $folder }}/{{ .File.Path }}" style="color:black"><i class="fa fa-edit fa-fw"></i>Edit This Page</a>
{{ end }}
diff --git a/docs/layouts/partials/docs/inject/head.html b/docs/layouts/partials/docs/inject/head.html
index 1464d7f..f456c36 100644
--- a/docs/layouts/partials/docs/inject/head.html
+++ b/docs/layouts/partials/docs/inject/head.html
@@ -19,7 +19,6 @@ under the License.
<!--
Misc other content that should run in the header
-->
-<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/css/github.css">
<link rel="stylesheet" type="text/css" href="{{.Site.BaseURL}}/font-awesome/css/font-awesome.min.css">
<script src="{{.Site.BaseURL}}/js/anchor.min.js"></script>
<script src="{{.Site.BaseURL}}/js/flink.js"></script>