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

weilee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 25179391926 docs: Fix broken permalink icon (#58763)
25179391926 is described below

commit 25179391926914195419c8bff246f34ce43d9d89
Author: Chang Yi Lun <[email protected]>
AuthorDate: Mon Dec 8 15:55:00 2025 +0800

    docs: Fix broken permalink icon (#58763)
---
 airflow-core/docs/conf.py                    |  4 ++++
 devel-common/sphinx_design/static/custom.css | 26 +++++++++++++++++++++-----
 2 files changed, 25 insertions(+), 5 deletions(-)

diff --git a/airflow-core/docs/conf.py b/airflow-core/docs/conf.py
index 74c09b31c7a..c57118e572c 100644
--- a/airflow-core/docs/conf.py
+++ b/airflow-core/docs/conf.py
@@ -372,3 +372,7 @@ redoc = [
 
 def setup(sphinx):
     sphinx.connect("autoapi-skip-member", skip_util_classes_extension)
+
+
+# Fix for broken permalink icon in Sphinx 7.x+
+html_permalinks_icon = '<svg xmlns="http://www.w3.org/2000/svg"; viewBox="0 0 
24 24" width="24" height="24" fill="currentColor"><path d="M3.9 12c0-1.71 
1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 
0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 
3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"/></svg>'
diff --git a/devel-common/sphinx_design/static/custom.css 
b/devel-common/sphinx_design/static/custom.css
index 9671e47b2a2..fecb79f96b6 100644
--- a/devel-common/sphinx_design/static/custom.css
+++ b/devel-common/sphinx_design/static/custom.css
@@ -57,14 +57,30 @@ section ol li p:last-child, section ul li p:last-child {
   margin-bottom: 0 !important;
 }
 
+/* Fix for broken permalink icon */
+
+/* Remove the "[link]" text pseudo-element produced by legacy code */
+a.headerlink::after {
+  content: none !important;
+  display: none !important;
+}
+
+/* Set link styles */
 a.headerlink {
-  content: "" !important;
-  font-size: 75% !important;
+  font-size: 1rem !important;
+  visibility: visible !important; /* Always visible */
+  color: #017cee;             /* Airflow Blue */
+  text-decoration: none;
+  padding-left: 0.2em;
 }
 
-a.headerlink::after {
-  content: " [link]" !important;  /* Theme image not existing */
-  visibility: visible !important;
+/* Set the SVG icon size and positioning */
+a.headerlink svg {
+  width: 1.5em;
+  height: 1.5em;
+  vertical-align: middle;
+  display: inline-block;
+  fill: currentColor;
 }
 
 /* compensate for sticky headers for anchored links */

Reply via email to