This is an automated email from the ASF dual-hosted git repository. kaxilnaik pushed a commit to branch staging in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit 1c36a6dbc0dad51f3c023600fc6b78c1ba80b232 Author: Kaxil Naik <[email protected]> AuthorDate: Thu Nov 6 01:10:52 2025 +0000 Upgrade Docsy theme from v0.2.0-pre to v0.12.0 and enable dark mode - Fixed corrupted Docsy submodule by removing and re-adding - Upgraded through major versions: v0.2.0 -> v0.6.0 -> v0.10.0 -> v0.12.0 - Added missing SCSS variables for compatibility: * $td-sidebar-tree-root-color * $font-awesome-font-name * .-bg-orange utility class - Removed Bootstrap 4 dependencies (switched to Bootstrap 5.3.3) - Removed custom scripts.html override (conflicts with Bootstrap 5) - Enabled dark mode via showLightDarkModeMenu = true Dark mode is now available via the light/dark toggle in the UI. --- .github/workflows/build.yml | 4 ++++ landing-pages/site/assets/scss/_colors.scss | 5 +++++ landing-pages/site/assets/scss/_variables.scss | 2 ++ landing-pages/site/config.toml | 2 ++ .../site/layouts/partials/{scripts.html => scripts.html.backup} | 0 landing-pages/site/themes/docsy | 2 +- 6 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7bcd1f015..49920b7ee3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,6 +86,10 @@ jobs: with: hugo-version: '0.135.0' extended: true + - name: 🔵 Setup Go + uses: actions/setup-go@v6 + with: + go-version: '1.23' - name: 🟢 Install node dependencies run: | /mnt/airflow-site/site.sh install-node-deps diff --git a/landing-pages/site/assets/scss/_colors.scss b/landing-pages/site/assets/scss/_colors.scss index f0ae3f4e25..4eee5b3f3e 100644 --- a/landing-pages/site/assets/scss/_colors.scss +++ b/landing-pages/site/assets/scss/_colors.scss @@ -32,3 +32,8 @@ $colors: ( slate-grey: #636365, greyish-brown: #51504f ); + +// Background color utility class for Docsy theme compatibility +.-bg-orange { + background-color: #FFA630; // Using $secondary color +} diff --git a/landing-pages/site/assets/scss/_variables.scss b/landing-pages/site/assets/scss/_variables.scss index bfba27f0cd..1ba7fe4335 100644 --- a/landing-pages/site/assets/scss/_variables.scss +++ b/landing-pages/site/assets/scss/_variables.scss @@ -59,6 +59,7 @@ $code-color: darken($secondary, 20%) !default; // UI element colors $border-color: $gray-300 !default; +$td-sidebar-tree-root-color: $primary !default; $td-sidebar-bg-color: rgba($primary, 0.03) !default; $td-sidebar-border-color: $border-color !default; @@ -77,6 +78,7 @@ $link-hover-decoration: none !default; $google_font_name: "Open Sans" !default; $google_font_family: "Open+Sans:300,300i,400,400i,700,700i" !default; $web-font-path: "/external/css/OpenSans.css"; +$font-awesome-font-name: "Font Awesome 6 Free" !default; $td-fonts-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; diff --git a/landing-pages/site/config.toml b/landing-pages/site/config.toml index 5473d5e3a6..84004f225c 100644 --- a/landing-pages/site/config.toml +++ b/landing-pages/site/config.toml @@ -103,6 +103,8 @@ sidebar_search_disable = false navbar_logo = true # Set to true to disable the About link in the site footer footer_about_disable = false +# Enable dark mode toggle +showLightDarkModeMenu = true # Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events. # This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set. diff --git a/landing-pages/site/layouts/partials/scripts.html b/landing-pages/site/layouts/partials/scripts.html.backup similarity index 100% rename from landing-pages/site/layouts/partials/scripts.html rename to landing-pages/site/layouts/partials/scripts.html.backup diff --git a/landing-pages/site/themes/docsy b/landing-pages/site/themes/docsy index 8d2b933154..ace4e37cee 160000 --- a/landing-pages/site/themes/docsy +++ b/landing-pages/site/themes/docsy @@ -1 +1 @@ -Subproject commit 8d2b933154ac99fe997a727efb4ba8a47cf5001b +Subproject commit ace4e37ceedcec9c48d329adb1128201061ef23d
