This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
The following commit(s) were added to refs/heads/main by this push:
new 285dc3cd65 Upgrade Docsy theme (#1443)
285dc3cd65 is described below
commit 285dc3cd6521f4a942f47bdfcc70a561c20e0366
Author: EJ Stinson <[email protected]>
AuthorDate: Wed Mar 11 05:00:40 2026 -0700
Upgrade Docsy theme (#1443)
* upgrade hugo to 157 from 146
* added enable dark mode flag in main-custom
* fixed spacing
* added 1.4.3 sub
* Fix context variable for permalink in sidebar-tree
---
.github/workflows/build.yml | 2 +-
landing-pages/site/assets/scss/main-custom.scss | 1 +
landing-pages/site/layouts/partials/sidebar-tree.html | 8 +++++---
landing-pages/site/themes/docsy | 2 +-
4 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index e8738de6b0..ee1382cc00 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -84,7 +84,7 @@ jobs:
- name: 📚 Install Hugo
uses: peaceiris/actions-hugo@75d2e84710de30f6ff7268e08f310b60ef14033f
# v3.0.0
with:
- hugo-version: '0.146.0'
+ hugo-version: '0.157.0'
extended: true
- name: 📦 Install Docsy theme dependencies (Bootstrap & FontAwesome)
working-directory: /mnt/airflow-site/landing-pages/site/themes/docsy
diff --git a/landing-pages/site/assets/scss/main-custom.scss
b/landing-pages/site/assets/scss/main-custom.scss
index defe50572b..04f3af08a3 100644
--- a/landing-pages/site/assets/scss/main-custom.scss
+++ b/landing-pages/site/assets/scss/main-custom.scss
@@ -51,6 +51,7 @@
@import "scroll-to-top";
@import "content-drawer";
@import "dropdown";
+$enable-dark-mode: true !default; // Set enable dark mode variable; bootstrap
also has but we don't import bootstrap in Docsy's main.scss; required for Docsy
theme version 0.14.2
@import "td/code-dark"; // Import Docsy Chroma themes for blog markdown code
blocks
@import "highlights";
@import "share-social-media";
diff --git a/landing-pages/site/layouts/partials/sidebar-tree.html
b/landing-pages/site/layouts/partials/sidebar-tree.html
index 5d8217a12f..2766fd1acd 100644
--- a/landing-pages/site/layouts/partials/sidebar-tree.html
+++ b/landing-pages/site/layouts/partials/sidebar-tree.html
@@ -18,13 +18,15 @@
*/}}
{{/* We cache this partial for bigger sites and set the active class client
side. */}}
+
<div id="td-sidebar-menu" class="td-sidebar__inner">
<nav class="collapse show td-sidebar-nav pt-2 pl-4" id="td-section-nav">
- {{ $rootPage := . }}
- {{ $firstSection := .FirstSection }}
+ {{ $context := cond (isset . "context") .context . }}
+ {{ $rootPage := $context }}
+ {{ $firstSection := $rootPage.FirstSection }}
{{ $pages := where (union $firstSection.Pages
$firstSection.Sections).ByWeight ".Params.toc_hide" "!=" true }}
{{ $pages := $pages | first 50 }}
- {{ $url := .Permalink}}
+ {{ $url := $context.Permalink}}
{{ range $pages }}
{{ if .IsPage }}
{{ $mid := printf "m-%s" (.RelPermalink | anchorize) }}
diff --git a/landing-pages/site/themes/docsy b/landing-pages/site/themes/docsy
index ace4e37cee..c8162c2346 160000
--- a/landing-pages/site/themes/docsy
+++ b/landing-pages/site/themes/docsy
@@ -1 +1 @@
-Subproject commit ace4e37ceedcec9c48d329adb1128201061ef23d
+Subproject commit c8162c2346bd68248411c75c994555a27b6645b4