Skip to content

Commit b53c62f

Browse files
committed
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.
1 parent aedde52 commit b53c62f

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

landing-pages/site/assets/scss/_colors.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,8 @@ $colors: (
3232
slate-grey: #636365,
3333
greyish-brown: #51504f
3434
);
35+
36+
// Background color utility class for Docsy theme compatibility
37+
.-bg-orange {
38+
background-color: #FFA630; // Using $secondary color
39+
}

landing-pages/site/assets/scss/_variables.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ $code-color: darken($secondary, 20%) !default;
5959
// UI element colors
6060

6161
$border-color: $gray-300 !default;
62+
$td-sidebar-tree-root-color: $primary !default;
6263
$td-sidebar-bg-color: rgba($primary, 0.03) !default;
6364
$td-sidebar-border-color: $border-color !default;
6465

@@ -77,6 +78,7 @@ $link-hover-decoration: none !default;
7778
$google_font_name: "Open Sans" !default;
7879
$google_font_family: "Open+Sans:300,300i,400,400i,700,700i" !default;
7980
$web-font-path: "/external/css/OpenSans.css";
81+
$font-awesome-font-name: "Font Awesome 6 Free" !default;
8082

8183
$td-fonts-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
8284

landing-pages/site/config.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ sidebar_search_disable = false
103103
navbar_logo = true
104104
# Set to true to disable the About link in the site footer
105105
footer_about_disable = false
106+
# Enable dark mode toggle
107+
showLightDarkModeMenu = true
106108

107109
# Adds a H2 section titled "Feedback" to the bottom of each doc. The responses are sent to Google Analytics as events.
108110
# This feature depends on [services.googleAnalytics] and will be disabled if "services.googleAnalytics.id" is not set.

landing-pages/site/themes/docsy

Submodule docsy updated 342 files

0 commit comments

Comments
 (0)