You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2026/01/15 10:22:51 UTC
(flink) branch release-2.2 updated (0f27e47dbb2 -> 28bda0b99a4)
This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a change to branch release-2.2
in repository https://gitbox.apache.org/repos/asf/flink.git
from 0f27e47dbb2 [FLINK-38703][runtime] Update slot manager metrics in thread-safety manner
new 8647457fb0b [FLINK-38914][docs] Preserve page path when linking to stable version
new 28bda0b99a4 [FLINK-38914][docs] Add canonical tags pointing to stable docs
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/layouts/partials/docs/inject/content-before.html | 6 ++++--
docs/layouts/partials/docs/inject/head.html | 10 ++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
(flink) 02/02: [FLINK-38914][docs] Add canonical tags pointing to stable docs
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch release-2.2
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 28bda0b99a414f6cfc2cd9f41ef9b70193fcfb60
Author: Martijn Visser <29...@users.noreply.github.com>
AuthorDate: Wed Jan 14 14:42:50 2026 +0100
[FLINK-38914][docs] Add canonical tags pointing to stable docs
All documentation pages now include a canonical link tag pointing to the stable version (flink-docs-stable). This prevents search engines from indexing duplicate content across master, release, and stable versions, consolidating SEO value on the stable docs where users should land.
---
docs/layouts/partials/docs/inject/head.html | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/docs/layouts/partials/docs/inject/head.html b/docs/layouts/partials/docs/inject/head.html
index f456c36bdc2..822b64ae3f3 100644
--- a/docs/layouts/partials/docs/inject/head.html
+++ b/docs/layouts/partials/docs/inject/head.html
@@ -19,6 +19,16 @@ under the License.
<!--
Misc other content that should run in the header
-->
+<!-- Canonical URL pointing to stable docs to avoid duplicate content issues across versions -->
+{{- $basePath := (urls.Parse .Site.BaseURL).Path -}}
+{{- $pagePath := strings.TrimPrefix $basePath .RelPermalink -}}
+{{- if eq $pagePath "" -}}
+ {{- $pagePath = "/" -}}
+{{- else if not (hasPrefix $pagePath "/") -}}
+ {{- $pagePath = printf "/%s" $pagePath -}}
+{{- end -}}
+<link rel="canonical" href="https://nightlies.apache.org/flink/flink-docs-stable{{ $pagePath }}" />
+
<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>
(flink) 01/02: [FLINK-38914][docs] Preserve page path when linking to stable version
Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
martijnvisser pushed a commit to branch release-2.2
in repository https://gitbox.apache.org/repos/asf/flink.git
commit 8647457fb0bb9a7ae3ff6e1c3d53d2b998f343d5
Author: Martijn Visser <29...@users.noreply.github.com>
AuthorDate: Mon Dec 29 13:08:42 2025 +0100
[FLINK-38914][docs] Preserve page path when linking to stable version
The "stable version" link in the warning banner for unreleased/out-of-date docs now redirects to the equivalent page in the stable docs instead of always redirecting to the homepage.
---
docs/layouts/partials/docs/inject/content-before.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/docs/layouts/partials/docs/inject/content-before.html b/docs/layouts/partials/docs/inject/content-before.html
index bfbea6ce7ab..35d7dde271f 100644
--- a/docs/layouts/partials/docs/inject/content-before.html
+++ b/docs/layouts/partials/docs/inject/content-before.html
@@ -20,16 +20,18 @@ under the License.
Partial that renders before the content on every page.
-->
{{ if $.Site.Params.ShowOutDatedWarning }}
+{{ $stableURL := replaceRE "/flink-docs-[^/]+/" "/flink-docs-stable/" .Permalink }}
<article class="markdown">
<blockquote style="border-color:#f66">
- {{ markdownify "This documentation is for an out-of-date version of Apache Flink. We recommend you use the latest [stable version](https://nightlies.apache.org/flink/flink-docs-stable/)."}}
+ {{ markdownify (printf "This documentation is for an out-of-date version of Apache Flink. We recommend you use the latest [stable version](%s)." $stableURL) }}
</blockquote>
</article>
{{ end }}
{{ if (not $.Site.Params.IsStable) }}
+{{ $stableURL := replaceRE "/flink-docs-[^/]+/" "/flink-docs-stable/" .Permalink }}
<article class="markdown">
<blockquote style="border-color:#f66">
- {{ markdownify "This documentation is for an unreleased version of Apache Flink. We recommend you use the latest [stable version](https://nightlies.apache.org/flink/flink-docs-stable/)."}}
+ {{ markdownify (printf "This documentation is for an unreleased version of Apache Flink. We recommend you use the latest [stable version](%s)." $stableURL) }}
</blockquote>
</article>
{{ end }}