Skip to content

Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows

Remove Juice theme dependency, build standalone custom theme

Maximilian Roos54d0ccd61694
diff --git a/.config/lychee.toml b/.config/lychee.toml
index 38c088339..9ca327073 100644
--- a/.config/lychee.toml
+++ b/.config/lychee.toml
@@ -62,6 +62,4 @@ root_dir = "docs/static"
# Exclude source files from link checking
exclude_path = [
".claude-plugin/skills/worktrunk/reference/README.md",
- # Third-party theme - has its own linking conventions
- "docs/themes/juice/README.md",
]
diff --git a/docs/CLAUDE.md b/docs/CLAUDE.md
index 9a18b7574..e9140a2b9 100644
--- a/docs/CLAUDE.md
+++ b/docs/CLAUDE.md
@@ -35,7 +35,7 @@ View changes: http://127.0.0.1:<port>
## Theme architecture
-The docs use a "warm workbench" theme built on top of the Juice Zola theme. Key files:
+The docs use a standalone "warm workbench" theme. Key files:
| File | Purpose |
|------|---------|
@@ -63,7 +63,7 @@ When either variable changes (including via media queries), all dependent values
1. **`box-sizing: border-box` on header** - Border is included in height, simplifying calculations
2. **`scrollbar-gutter: stable`** - Reserves scrollbar space to prevent layout shift on navigation
-3. **IntersectionObserver intercept** - Disables Juice's scroll-spy which conflicts with our TOC styling
+3. **IntersectionObserver intercept** - Ensures scroll-spy doesn't conflict with TOC styling
4. **Logo preload** - Prevents flash when navigating between pages
5. **WCAG AA colors** - `--wt-color-text-soft` is #78716a for 4.5:1 contrast
6. **iOS viewport polyfill** - Sets stable `--vh-full` variable for Firefox iOS/Chrome iOS (see `templates/base.html` for details on the jank issue and what we tried)
diff --git a/docs/config.toml b/docs/config.toml
index 1a79d8738..a6660fff5 100644
--- a/docs/config.toml
+++ b/docs/config.toml
@@ -4,7 +4,6 @@ base_url = "https://worktrunk.dev/"
compile_sass = true
build_search_index = true
-theme = "juice"
title = "Worktrunk"
[markdown]
@@ -17,12 +16,12 @@ highlight_themes_css = [
error_on_missing_highlight = true
[extra]
-juice_logo_name = "Worktrunk"
-juice_logo_path = "logo.png"
+logo_name = "Worktrunk"
+logo_path = "logo.png"
rust_crate = "worktrunk"
github_repo = "max-sixty/worktrunk"
site_description = "CLI for Git worktree management, designed for parallel AI agent workflows."
-juice_extra_menu = [
+extra_menu = [
{ title = "Why Worktrunk?", link = "/why-worktrunk" },
{ title = "Tips", link = "/tips-patterns" },
{ title = "GitHub", link = "https://github.com/max-sixty/worktrunk" },
diff --git a/docs/sass/custom.scss b/docs/sass/custom.scss
index fc14dddd0..f2ba2ff36 100644
--- a/docs/sass/custom.scss
+++ b/docs/sass/custom.scss
@@ -11,28 +11,38 @@ html {
scrollbar-gutter: stable;
}
-// ============================================================================
-// Typography
-// ============================================================================
-
body {
+ padding: 0;
+ margin: 0;
+ box-sizing: border-box;
+ display: flex;
+ flex-direction: column;
+ // iOS viewport jank fix: --vh-full is set by JS in base.html for iOS browsers.
+ // Fallback to 100lvh for other browsers. See base.html for full explanation.
+ min-height: var(--vh-full, 100lvh);
font-family: var(--wt-font-sans);
font-size: 15px;
line-height: 1.5;
color: var(--wt-color-text);
background-color: var(--wt-color-bg);
- // iOS viewport jank fix: --vh-full is set by JS in base.html for iOS browsers.
- // Fallback to 100lvh for other browsers. See base.html for full explanation.
- min-height: var(--vh-full, 100lvh);
}
-// Override Juice theme's .text class (sets font-size: 18px, we want 15px)
-.text {
- font-size: inherit;
- line-height: inherit;
- letter-spacing: inherit;
+a {
+ text-decoration: none;
}
+// ============================================================================
+// Utility Classes
+// ============================================================================
+
+.text-center {
+ text-align: center;
+}
+
+// ============================================================================
+// Typography
+// ============================================================================
+
// Headings
h1, h2, h3, h4, h5, h6 {
font-family: var(--wt-font-head);
@@ -41,14 +51,12 @@ h1, h2, h3, h4, h5, h6 {
scroll-margin-top: calc(var(--wt-header-height) + var(--wt-main-padding-top));
}
-h1, .heading-text {
+h1 {
font-size: 1.75rem;
font-weight: 650;
letter-spacing: -0.02em;
margin-top: 0;
margin-bottom: 0.5rem;
- border-left: none;
- padding: 0;
}
h2 {
@@ -87,6 +95,17 @@ h4 {
font-weight: 550;
}
+// Page title heading (used on content pages)
+.heading-text {
+ font-family: var(--wt-font-head);
+ font-size: 1.75rem;
+ font-weight: 650;
+ letter-spacing: -0.02em;
+ margin-top: 0;
+ margin-bottom: 0.5rem;
+ color: var(--wt-color-text);
+}
+
// ============================================================================
// Header & Bench Rail
// ============================================================================
@@ -94,18 +113,20 @@ h4 {
header {
// Height includes safe-area-inset so content isn't compressed on notched devices
height: calc(var(--wt-header-height) + env(safe-area-inset-top, 0px));
- box-sizing: border-box; // Include border in height
- background-color: var(--wt-color-bg-soft) !important;
+ box-sizing: border-box;
+ background-color: var(--wt-color-bg-soft);
border-bottom: 1px solid var(--wt-color-border-subtle);
padding: 0 50px;
// iOS safe area: push content below notch/Dynamic Island
padding-top: env(safe-area-inset-top, 0px);
- box-shadow: none !important;
position: sticky;
top: 0;
// Z-index hierarchy: overlay(199) < scrim(200) = menu(200) < header(201)
// Header on top so toggle button remains clickable when menu is open
z-index: 201;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
}
// iOS 26 Liquid Glass fix: solid scrim behind translucent browser chrome
@@ -141,13 +162,11 @@ header {
font-weight: 600;
font-size: 1.25rem;
color: var(--wt-color-text);
- margin: 0; // Override Juice's margin: 0 40px
img {
width: 44px;
height: 44px;
object-fit: contain;
- margin: 0; // Override Juice's margin: 0 25px
}
}
@@ -170,7 +189,6 @@ nav {
&:hover {
color: var(--wt-color-text);
background: var(--wt-color-bg-soft);
- text-decoration: none;
}
}
@@ -260,18 +278,20 @@ nav {
// ============================================================================
main {
+ display: flex;
+ flex-grow: 1;
background-color: var(--wt-color-bg);
padding: var(--wt-main-padding-top) 80px;
- gap: 2.5rem; // Space between TOC and content
+ gap: 2.5rem;
}
.content {
- display: block; // Override Juice's display: flex - fixes text selection across blocks
- box-sizing: border-box; // Include padding/border in width for consistent sizing
- width: 100%; // Fill available space in flex container
- max-width: 922px; // Cap width for readability
- min-width: 0; // Override Juice's min-width: 800px
- overflow-x: auto; // Allow wide content (tables) to scroll without page overflow
+ display: block;
+ box-sizing: border-box;
+ width: 100%;
+ max-width: 922px;
+ min-width: 0;
+ overflow-x: auto;
padding: 1.5rem 30px;
background-color: var(--wt-color-bg-elevated);
border-radius: 12px;
@@ -292,11 +312,11 @@ main {
.content img {
display: block;
- max-width: 100%; // Scale down to fit, but don't upscale
- box-sizing: border-box; // Include border in width calculation
+ max-width: 100%;
+ box-sizing: border-box;
border: 1px solid var(--wt-color-code-border);
border-left: 3px solid var(--wt-color-accent);
- border-radius: 0 0.5rem 0.5rem 0; // Square left (accent), rounded right
+ border-radius: 0 0.5rem 0.5rem 0;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
}
@@ -304,10 +324,10 @@ main {
.content figure.demo {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
- margin-top: 0.25rem; // Minimal gap after intro text
+ margin-top: 0.25rem;
img {
- min-width: 800px; // Shrink until readable, then scroll
+ min-width: 800px;
}
}
@@ -440,20 +460,17 @@ main {
}
// Softer bold for table headers and branch names
- // Default <b> is 700 (too heavy), reduce to semibold
b {
font-weight: 550;
}
// ANSI color classes for terminal output
- .d { opacity: 0.67; } // dim
- .g { color: var(--green, #0a0); } // green
- .r { color: var(--red, #a00); } // red
- .c { color: var(--cyan, #0aa); } // cyan
+ .d { opacity: 0.67; }
+ .g { color: var(--green, #0a0); }
+ .r { color: var(--red, #a00); }
+ .c { color: var(--cyan, #0aa); }
// Gutter spans - extend vertically to form continuous line
- // These are single-space spans with background color at line start
- // Math: gap = (line-height - 1) / 2 = (1.5 - 1) / 2 = 0.25
span[style*="background:var(--bright-white"] {
display: inline-block;
margin: -0.25em 0;
@@ -514,13 +531,11 @@ table {
font-size: 0.9rem;
}
- // First column - row labels
td:first-child {
font-weight: 550;
color: var(--wt-color-text);
}
- // Row dividers instead of zebra striping
tbody tr {
border-bottom: 1px solid var(--wt-color-border-subtle);
@@ -541,8 +556,8 @@ table {
.toc-sticky {
position: sticky;
- top: calc(var(--wt-header-height) + var(--wt-main-padding-top)); // Definitionally matches natural position
- box-sizing: border-box; // Include padding/border in max-height calculation
+ top: calc(var(--wt-header-height) + var(--wt-main-padding-top));
+ box-sizing: border-box;
border-radius: 0.5rem;
background-color: var(--wt-color-bg-elevated);
border: 1px solid var(--wt-color-border-subtle);
@@ -551,79 +566,72 @@ table {
// iOS jank fix: --vh-full set by JS, fallback to lvh. See base.html.
max-height: calc(var(--vh-full, 100lvh) - var(--wt-header-height) - var(--wt-main-padding-top) - 20px);
overflow-y: auto;
- overscroll-behavior: contain; // Trap scroll events within TOC
+ overscroll-behavior: contain;
}
-// Use `main` prefix to override juice.scss specificity (main .toc-item)
-main {
- // Moderate tightening with clear section headers
- .toc-group-label {
- font-size: 0.7rem;
- font-weight: 600;
- text-transform: uppercase;
- letter-spacing: 0.05em;
- color: var(--wt-color-text-soft);
- padding: 0.6rem 0.45rem 0.2rem;
- margin: 0.5rem 0.4rem 0; // More top margin for clear section breaks
+.toc-group-label {
+ font-size: 0.7rem;
+ font-weight: 600;
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--wt-color-text-soft);
+ padding: 0.6rem 0.45rem 0.2rem;
+ margin: 0.5rem 0.4rem 0;
- &:first-child {
- margin-top: 0;
- }
+ &:first-child {
+ margin-top: 0;
}
+}
- .toc-item {
- padding: 0;
- margin: 0 0.4rem;
+.toc-item {
+ padding: 0;
+ margin: 0 0.4rem;
- a {
- display: block;
- padding: 0.55rem 0.5rem;
- border-radius: 0.25rem;
- font-size: 0.8rem;
- color: var(--wt-color-text-muted);
- transition: all 150ms;
+ a {
+ display: block;
+ padding: 0.55rem 0.5rem;
+ border-radius: 0.25rem;
+ font-size: 0.8rem;
+ color: var(--wt-color-text-muted);
+ transition: all 150ms;
- &:hover {
- background: var(--wt-color-bg-soft);
- color: var(--wt-color-text);
- text-decoration: none;
- }
+ &:hover {
+ background: var(--wt-color-bg-soft);
+ color: var(--wt-color-text);
+ }
- &.active {
- border-left: 3px solid var(--wt-color-accent);
- background: var(--wt-color-accent-soft);
- color: var(--wt-color-text);
- // No font-weight change - prevents layout shift
- padding-left: calc(0.5rem - 3px);
- }
+ &.active {
+ border-left: 3px solid var(--wt-color-accent);
+ background: var(--wt-color-accent-soft);
+ color: var(--wt-color-text);
+ padding-left: calc(0.5rem - 3px);
}
}
+}
- .toc-item-child {
- padding: 0 0.45rem 0.2rem 1rem;
- margin: 0 0.4rem;
+.toc-item-child {
+ padding: 0 0.45rem 0.2rem 1rem;
+ margin: 0 0.4rem;
- a {
- font-size: 0.75rem;
- color: var(--wt-color-text-soft);
- padding: 0.1rem 0.35rem;
- border-radius: 0.2rem;
- display: block;
- transition: all 150ms;
+ a {
+ font-size: 0.75rem;
+ color: var(--wt-color-text-soft);
+ padding: 0.1rem 0.35rem;
+ border-radius: 0.2rem;
+ display: block;
+ transition: all 150ms;
- &:hover {
- color: var(--wt-color-text-muted);
- background: var(--wt-color-bg-soft);
- text-decoration: none;
- }
+ &:hover {
+ color: var(--wt-color-text-muted);
+ background: var(--wt-color-bg-soft);
}
+ }
- &.nested {
- padding-left: 1.6rem;
+ &.nested {
+ padding-left: 1.6rem;
- a {
- font-size: 0.7rem;
- }
+ a {
+ font-size: 0.7rem;
}
}
}
@@ -648,7 +656,6 @@ main {
&:hover {
background: var(--wt-color-accent-soft);
- text-decoration: none;
}
}
}
@@ -687,10 +694,10 @@ footer {
// Warm gradient background with subtle radial glow
background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(254, 243, 199, 0.7) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 30% 70%, rgba(251, 243, 219, 0.5) 0%, transparent 50%),
- var(--wt-color-bg-soft) !important;
+ var(--wt-color-bg-soft);
// iOS jank fix: --vh-full set by JS, fallback to lvh. See base.html.
- height: calc(var(--vh-full, 100lvh) - var(--wt-header-height) - env(safe-area-inset-top, 0px)) !important;
- max-height: calc(var(--vh-full, 100lvh) - var(--wt-header-height) - env(safe-area-inset-top, 0px)) !important;
+ height: calc(var(--vh-full, 100lvh) - var(--wt-header-height) - env(safe-area-inset-top, 0px));
+ max-height: calc(var(--vh-full, 100lvh) - var(--wt-header-height) - env(safe-area-inset-top, 0px));
padding: 4rem 40px 3rem;
position: relative;
display: flex;
@@ -738,8 +745,6 @@ footer {
font-size: 1.25rem;
font-weight: 400;
color: var(--wt-color-text-muted);
- border-left: none;
- padding-left: 0;
max-width: 35ch;
}
@@ -751,7 +756,6 @@ footer {
color: var(--wt-color-text-muted);
cursor: pointer;
transition: color 150ms;
- // Gentle floating animation
animation: float 3s ease-in-out infinite;
&:hover {
@@ -771,7 +775,7 @@ footer {
.hero {
background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(245, 158, 11, 0.08) 0%, transparent 60%),
radial-gradient(ellipse 50% 40% at 30% 70%, rgba(139, 115, 85, 0.06) 0%, transparent 50%),
- var(--wt-color-bg-soft) !important;
+ var(--wt-color-bg-soft);
.hero-image {
filter: drop-shadow(0 8px 24px rgba(245, 158, 11, 0.2));
@@ -787,7 +791,7 @@ footer {
.button {
display: inline-block;
background: var(--wt-color-accent);
- color: white !important;
+ color: white;
padding: 0.6rem 1.5rem;
border-radius: 999px;
font-weight: 600;
@@ -798,7 +802,6 @@ footer {
&:hover {
background: var(--wt-color-accent-strong);
- text-decoration: none;
}
}
@@ -815,6 +818,7 @@ button.explore-more {
ul, ol {
padding-left: 1.5rem;
+ margin-top: 0.5rem;
}
ul > li, ol > li {
@@ -832,7 +836,6 @@ ul > li::marker {
figure {
margin: 1.5rem 0;
- // Image styling inherited from .content img
}
figcaption {
@@ -848,7 +851,7 @@ figcaption {
@media screen and (max-width: 1024px) {
:root {
- --wt-main-padding-top: 30px; // Override for tablet
+ --wt-main-padding-top: 30px;
}
main {
@@ -868,7 +871,7 @@ figcaption {
// ============================================================================
.mobile-menu-toggle {
- display: none; // Hidden by default, shown at 768px breakpoint
+ display: none;
align-items: center;
justify-content: center;
background: none;
@@ -916,7 +919,6 @@ figcaption {
.mobile-menu {
display: none;
position: fixed;
- // Position below header (which may include safe-area-inset on iOS)
top: calc(var(--wt-header-height) + env(safe-area-inset-top, 0px));
left: 0;
width: min(260px, 70vw);
@@ -957,7 +959,6 @@ figcaption {
&:hover {
background: var(--wt-color-bg-soft);
- text-decoration: none;
}
}
@@ -996,7 +997,6 @@ figcaption {
&:hover {
background: var(--wt-color-bg-soft);
color: var(--wt-color-text);
- text-decoration: none;
}
}
@@ -1007,7 +1007,6 @@ body.mobile-menu-open {
@media screen and (max-width: 768px) {
:root {
- // Mobile header is fixed height (logo + toggle only, nav hidden)
--wt-header-height: 50px;
--wt-main-padding-top: 20px;
}
@@ -1017,10 +1016,8 @@ body.mobile-menu-open {
}
header {
- // Height includes safe-area-inset so content isn't compressed
height: calc(var(--wt-header-height) + env(safe-area-inset-top, 0px));
padding: 10px 20px;
- // Push content below notch/Dynamic Island
padding-top: calc(env(safe-area-inset-top, 0px) + 10px);
display: flex;
flex-direction: row;
@@ -1028,7 +1025,7 @@ body.mobile-menu-open {
justify-content: space-between;
}
- // Hide desktop nav on mobile - use hamburger menu instead
+ // Hide desktop nav on mobile
header nav {
display: none;
}
@@ -1052,7 +1049,6 @@ body.mobile-menu-open {
}
.hero {
- // iOS jank fix: --vh-full set by JS, fallback to lvh. See base.html.
height: calc(var(--vh-full, 100lvh) - var(--wt-header-height) - env(safe-area-inset-top, 0px));
padding: 2rem 20px;
flex-direction: column;
@@ -1067,7 +1063,6 @@ body.mobile-menu-open {
display: none;
}
- // Show mobile menu toggle on mobile
.mobile-menu-toggle {
display: flex;
}
@@ -1128,7 +1123,6 @@ input:focus-visible {
// Content links - animated underline
.content a:not(.button) {
position: relative;
- text-decoration: none;
&::after {
content: "";
@@ -1150,7 +1144,7 @@ input:focus-visible {
}
}
-// Button - enhanced hover (subtle shadow only, no lift)
+// Button - enhanced hover
.button {
box-shadow: 0 2px 4px rgba(217, 119, 6, 0.15);
@@ -1188,16 +1182,15 @@ input:focus-visible {
scrollbar-color: var(--wt-color-border-subtle) transparent;
}
-// Custom text selection - brand colors
+// Custom text selection
::selection {
background: var(--wt-color-accent-soft);
color: var(--wt-color-text);
}
-// Footer link underlines - extend the animated underline pattern
+// Footer link underlines
footer a {
position: relative;
- text-decoration: none;
&::after {
content: "";
@@ -1235,12 +1228,12 @@ header nav .nav-item {
}
}
-// TOC hover indicator (non-active items) - just background, no border to avoid jiggle
+// TOC hover indicator
.toc-item a:not(.active):hover {
background: var(--wt-color-bg-soft);
}
-// Code block hover glow - enhance the existing shadow
+// Code block hover glow
.content pre {
transition: box-shadow 50ms;
@@ -1252,7 +1245,7 @@ header nav .nav-item {
}
-// Logo hover effect - subtle glow
+// Logo hover effect
header .logo:hover img {
filter: drop-shadow(0 0 8px rgba(217, 119, 6, 0.3));
transition: filter 200ms ease;
@@ -1271,16 +1264,12 @@ button.explore-more {
// ============================================================================
// Dark Mode Adjustments
// ============================================================================
-// Syntax highlighting is handled by Zola's CSS-based themes (syntax-light.css,
-// syntax-dark.css) loaded conditionally in base.html via prefers-color-scheme.
@media (prefers-color-scheme: dark) {
- // Tell browser we're in dark mode (affects form controls, scrollbars)
:root {
color-scheme: dark;
}
- // Search results highlight
#suggestions {
.search-title b,
.search-excerpt b {
diff --git a/docs/themes/juice/static/normalize.css b/docs/static/normalize.css
similarity index 100%
rename from docs/themes/juice/static/normalize.css
rename to docs/static/normalize.css
diff --git a/docs/templates/_variables.html b/docs/templates/_variables.html
index b39cad87b..e9a602d7a 100644
--- a/docs/templates/_variables.html
+++ b/docs/templates/_variables.html
@@ -46,21 +46,6 @@
--wt-font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
--wt-font-head: "Plus Jakarta Sans", var(--wt-font-sans);
--wt-font-mono: "JetBrains Mono", "Fira Code", "SF Mono", Menlo, monospace;
-
- /* Juice theme compatibility */
- --primary-color: var(--wt-color-bg-soft);
- --primary-text-color: var(--wt-color-text);
- --primary-text-color-over: var(--wt-color-text);
- --primary-link-color: var(--wt-color-link);
- --secondary-color: var(--wt-color-bg);
- --secondary-text-color: var(--wt-color-text-muted);
- --toc-highlight-text-color: var(--wt-color-accent);
- --toc-background-color: var(--wt-color-bg-elevated);
- --code-color: #2d2926;
- --code-background-color: var(--wt-color-code-bg);
- --shadow-color: rgba(0,0,0,0.06);
- --header-font-family: var(--wt-font-head);
- --text-font-family: var(--wt-font-sans);
}
/* Dark Mode - follows system preference */
@@ -101,10 +86,6 @@
--blue: #60a5fa;
--magenta: #c084fc;
--bright-black: #6b7280;
-
- /* Juice compatibility */
- --code-color: #e8e6e3;
- --shadow-color: rgba(0,0,0,0.3);
}
}
</style>
diff --git a/docs/templates/base.html b/docs/templates/base.html
index 43aa2d6da..c74662084 100644
--- a/docs/templates/base.html
+++ b/docs/templates/base.html
@@ -1,192 +1,172 @@
-{% extends "juice/templates/index.html" %}
-
-{% block favicon %}
-<link rel="icon" type="image/png" href="/favicon.png">
-{% endblock favicon %}
-
-{% block fonts %}
-<link rel="preconnect" href="https://fonts.googleapis.com">
-<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
-<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
-<link rel="preload" href="{{ get_url(path='[email protected]') }}" as="image" media="(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)">
-<link rel="preload" href="{{ get_url(path='logo.png') }}" as="image" media="not all and (-webkit-min-device-pixel-ratio: 2), not all and (min-resolution: 192dpi)">
-{% endblock fonts %}
-
-{% block head %}
-{# _variables.html is already included by the theme at line 12 of juice/templates/index.html #}
-{# Zola resolves it to our custom templates/_variables.html, so no need to include it again #}
-<script>
-// iOS viewport jank fix: Firefox/Chrome iOS have broken svh/lvh units that
-// behave like dvh, causing the hero to resize when browser chrome appears.
-// Root cause: Missing WebKit minimumViewportInset/maximumViewportInset APIs.
-// https://github.com/mozilla-mobile/firefox-ios/issues/11574
-//
-// Solution: Capture height ONCE on load, set --vh-full CSS variable.
-// CSS uses var(--vh-full, 100lvh) so iOS gets stable pixels, others get lvh.
-//
-// What didn't work:
-// - Pure 100lvh: janks on Firefox iOS (lvh broken too)
-// - -webkit-fill-available: overridden by media queries / didn't help
-// - Updating on resize/visualViewport events: made jank WORSE
-//
-// TODO: Simplify if Firefox iOS ever fixes their WebKit wrapper.
-(function() {
- // Only run on iOS WebKit browsers
- var isIOS = /iP(hone|ad|od)/.test(navigator.platform) ||
- (/Macintosh/.test(navigator.userAgent) && 'ontouchend' in document);
- if (!isIOS) return;
-
- // Capture initial viewport height ONCE (with browser chrome visible)
- // and use it as a stable value. Never update on resize.
- var h = window.innerHeight;
- if (h) {
- document.documentElement.style.setProperty('--vh-full', h + 'px');
- }
-
- // Only update on orientation change (actual device rotation)
- window.addEventListener('orientationchange', function() {
- // Small delay to let the new orientation settle
- setTimeout(function() {
- var newH = window.innerHeight;
- if (newH) {
- document.documentElement.style.setProperty('--vh-full', newH + 'px');
- }
- }, 100);
- });
-})();
-</script>
-<meta name="view-transition" content="same-origin">
-<meta name="description" content="{{ config.extra.site_description }}">
-
-<!-- OpenGraph -->
-<meta property="og:type" content="website">
-<meta property="og:url" content="{{ current_url | default(value=config.base_url) }}">
-<meta property="og:title" content="{% if page.title %}{{ page.title }} | {{ config.title }}{% else %}{{ config.title }}{% endif %}">
-<meta property="og:description" content="{{ config.extra.site_description }}">
-<meta property="og:image" content="{{ config.base_url }}social-card.png">
-<meta property="og:image:width" content="1200">
-<meta property="og:image:height" content="630">
-
-<!-- Twitter Card -->
-<meta name="twitter:card" content="summary_large_image">
-<meta name="twitter:title" content="{% if page.title %}{{ page.title }} | {{ config.title }}{% else %}{{ config.title }}{% endif %}">
-<meta name="twitter:description" content="{{ config.extra.site_description }}">
-<meta name="twitter:image" content="{{ config.base_url }}social-card.png">
-
-<!-- Google tag (gtag.js) -->
-<script async src="https://www.googletagmanager.com/gtag/js?id=G-6YY8BDJ4QH"></script>
-<script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'G-6YY8BDJ4QH');
-</script>
-<script>
-// Disable the Juice theme's scroll-spy by intercepting IntersectionObserver
-// Juice creates an observer with threshold: 1 to highlight TOC items on scroll
-// This causes confusing behavior - we want TOC to show current PAGE, not viewport
-(function() {
- const RealIntersectionObserver = window.IntersectionObserver;
- window.IntersectionObserver = function(callback, options) {
- // Juice's scroll-spy uses threshold: 1 - return a no-op observer
- if (options && options.threshold === 1) {
- return {
- observe: function() {},
- unobserve: function() {},
- disconnect: function() {}
- };
+{% import "macros.html" as macros %}
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="UTF-8">
+ <title>{% block title %}{{ config.title }}{% endblock title %}</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
+ <link rel="icon" type="image/png" href="/favicon.png">
+
+ {% include "_variables.html" %}
+
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
+ <link rel="preload" href="{{ get_url(path='[email protected]') }}" as="image" media="(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)">
+ <link rel="preload" href="{{ get_url(path='logo.png') }}" as="image" media="not all and (-webkit-min-device-pixel-ratio: 2), not all and (min-resolution: 192dpi)">
+
+ <script>
+ // iOS viewport jank fix: Firefox/Chrome iOS have broken svh/lvh units that
+ // behave like dvh, causing the hero to resize when browser chrome appears.
+ // Root cause: Missing WebKit minimumViewportInset/maximumViewportInset APIs.
+ // https://github.com/mozilla-mobile/firefox-ios/issues/11574
+ //
+ // Solution: Capture height ONCE on load, set --vh-full CSS variable.
+ // CSS uses var(--vh-full, 100lvh) so iOS gets stable pixels, others get lvh.
+ (function() {
+ var isIOS = /iP(hone|ad|od)/.test(navigator.platform) ||
+ (/Macintosh/.test(navigator.userAgent) && 'ontouchend' in document);
+ if (!isIOS) return;
+
+ var h = window.innerHeight;
+ if (h) {
+ document.documentElement.style.setProperty('--vh-full', h + 'px');
}
- // For other observers, use the real implementation
- return new RealIntersectionObserver(callback, options);
- };
- // Preserve prototype for instanceof checks
- window.IntersectionObserver.prototype = RealIntersectionObserver.prototype;
-})();
-</script>
-<link rel="preload" href="/custom.css" as="style">
-<link rel="stylesheet" href="/custom.css">
-<!-- Syntax highlighting themes - preload and load conditionally by color scheme -->
-<link rel="preload" href="/syntax-light.css" as="style" media="(prefers-color-scheme: light)">
-<link rel="preload" href="/syntax-dark.css" as="style" media="(prefers-color-scheme: dark)">
-<link rel="stylesheet" href="/syntax-light.css" media="(prefers-color-scheme: light)">
-<link rel="stylesheet" href="/syntax-dark.css" media="(prefers-color-scheme: dark)">
-<script src="/elasticlunr.min.js" defer></script>
-<script src="/search_index.en.js" defer></script>
-<script src="/search.js" defer></script>
-<script src="/code-copy.js" defer></script>
-<script src="/mobile-menu.js" defer></script>
-<script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
-{% endblock head %}
-
-{% block header %}
-<!-- iOS 26 Liquid Glass fix: solid scrim behind translucent browser chrome -->
-<div class="ios-chrome-scrim" aria-hidden="true"></div>
-<header>
- <button class="mobile-menu-toggle" aria-label="Open menu" aria-expanded="false">
- <svg class="menu-icon" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <line x1="3" y1="6" x2="21" y2="6"></line>
- <line x1="3" y1="12" x2="21" y2="12"></line>
- <line x1="3" y1="18" x2="21" y2="18"></line>
- </svg>
- <svg class="close-icon" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
- <line x1="18" y1="6" x2="6" y2="18"></line>
- <line x1="6" y1="6" x2="18" y2="18"></line>
- </svg>
- </button>
- <a href="/">
- <div class="logo">
- <img src="{{ get_url(path=config.extra.juice_logo_path) }}" srcset="{{ get_url(path='logo.png') }} 1x, {{ get_url(path='[email protected]') }} 2x" alt="logo" width="44" height="44" decoding="sync" fetchpriority="high">
- {{ config.extra.juice_logo_name }}
- </div>
- </a>
- <nav>
- <div class="search-container">
- <input id="userinput" type="search" placeholder="Search..." aria-label="Search documentation">
- <div id="suggestions"></div>
- </div>
- {% for menu in config.extra.juice_extra_menu %}
- <a class="nav-item subtitle-text" href="{{ menu.link | safe }}">{{ menu.title }}</a>
- {% endfor %}
- </nav>
-</header>
-
-<!-- Mobile menu drawer -->
-<div class="mobile-menu-overlay" aria-hidden="true"></div>
-<nav class="mobile-menu" aria-hidden="true">
- <div class="mobile-menu-content">
- <div class="mobile-menu-section">
- {% for menu in config.extra.juice_extra_menu %}
- <a class="mobile-nav-item" href="{{ menu.link | safe }}">{{ menu.title }}</a>
- {% endfor %}
- </div>
- <div class="mobile-menu-divider"></div>
- <div class="mobile-menu-section mobile-menu-toc">
- {% set docs_section = get_section(path="_index.md") %}
- {% set current_group = "" %}
- {% for doc_page in docs_section.pages %}
- {% set page_group = doc_page.extra.group | default(value="") %}
- {% if page_group != current_group and page_group != "" %}
- <div class="mobile-toc-group">{{ page_group }}</div>
- {% set_global current_group = page_group %}
- {% endif %}
- <a class="mobile-toc-item" href="{{ doc_page.permalink | safe }}">{{ doc_page.title }}</a>
+
+ window.addEventListener('orientationchange', function() {
+ setTimeout(function() {
+ var newH = window.innerHeight;
+ if (newH) {
+ document.documentElement.style.setProperty('--vh-full', newH + 'px');
+ }
+ }, 100);
+ });
+ })();
+ </script>
+ <meta name="view-transition" content="same-origin">
+ <meta name="description" content="{{ config.extra.site_description }}">
+
+ <!-- OpenGraph -->
+ <meta property="og:type" content="website">
+ <meta property="og:url" content="{{ current_url | default(value=config.base_url) }}">
+ <meta property="og:title" content="{% if page.title %}{{ page.title }} | {{ config.title }}{% else %}{{ config.title }}{% endif %}">
+ <meta property="og:description" content="{{ config.extra.site_description }}">
+ <meta property="og:image" content="{{ config.base_url }}social-card.png">
+ <meta property="og:image:width" content="1200">
+ <meta property="og:image:height" content="630">
+
+ <!-- Twitter Card -->
+ <meta name="twitter:card" content="summary_large_image">
+ <meta name="twitter:title" content="{% if page.title %}{{ page.title }} | {{ config.title }}{% else %}{{ config.title }}{% endif %}">
+ <meta name="twitter:description" content="{{ config.extra.site_description }}">
+ <meta name="twitter:image" content="{{ config.base_url }}social-card.png">
+
+ <!-- Google tag (gtag.js) -->
+ <script async src="https://www.googletagmanager.com/gtag/js?id=G-6YY8BDJ4QH"></script>
+ <script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+ gtag('config', 'G-6YY8BDJ4QH');
+ </script>
+
+ <link rel="stylesheet" href="/normalize.css">
+ <link rel="preload" href="/custom.css" as="style">
+ <link rel="stylesheet" href="/custom.css">
+ <!-- Syntax highlighting themes - preload and load conditionally by color scheme -->
+ <link rel="preload" href="/syntax-light.css" as="style" media="(prefers-color-scheme: light)">
+ <link rel="preload" href="/syntax-dark.css" as="style" media="(prefers-color-scheme: dark)">
+ <link rel="stylesheet" href="/syntax-light.css" media="(prefers-color-scheme: light)">
+ <link rel="stylesheet" href="/syntax-dark.css" media="(prefers-color-scheme: dark)">
+ <script src="/elasticlunr.min.js" defer></script>
+ <script src="/search_index.en.js" defer></script>
+ <script src="/search.js" defer></script>
+ <script src="/code-copy.js" defer></script>
+ <script src="/mobile-menu.js" defer></script>
+ <script src="//instant.page/5.2.0" type="module" integrity="sha384-jnZyxPjiipYXnSU0ygqeac2q7CVYMbh84q0uHVRRxEtvFPiQYbXWUorga2aqZJ0z"></script>
+</head>
+
+<body>
+ <!-- iOS 26 Liquid Glass fix: solid scrim behind translucent browser chrome -->
+ <div class="ios-chrome-scrim" aria-hidden="true"></div>
+ <header>
+ <button class="mobile-menu-toggle" aria-label="Open menu" aria-expanded="false">
+ <svg class="menu-icon" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <line x1="3" y1="6" x2="21" y2="6"></line>
+ <line x1="3" y1="12" x2="21" y2="12"></line>
+ <line x1="3" y1="18" x2="21" y2="18"></line>
+ </svg>
+ <svg class="close-icon" aria-hidden="true" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
+ <line x1="18" y1="6" x2="6" y2="18"></line>
+ <line x1="6" y1="6" x2="18" y2="18"></line>
+ </svg>
+ </button>
+ <a href="/">
+ <div class="logo">
+ <img src="{{ get_url(path=config.extra.logo_path) }}" srcset="{{ get_url(path='logo.png') }} 1x, {{ get_url(path='[email protected]') }} 2x" alt="logo" width="44" height="44" decoding="sync" fetchpriority="high">
+ {{ config.extra.logo_name }}
+ </div>
+ </a>
+ <nav>
+ <div class="search-container">
+ <input id="userinput" type="search" placeholder="Search..." aria-label="Search documentation">
+ <div id="suggestions"></div>
+ </div>
+ {% for menu in config.extra.extra_menu %}
+ <a class="nav-item" href="{{ menu.link | safe }}">{{ menu.title }}</a>
{% endfor %}
+ </nav>
+ </header>
+
+ <!-- Mobile menu drawer -->
+ <div class="mobile-menu-overlay" aria-hidden="true"></div>
+ <nav class="mobile-menu" aria-hidden="true">
+ <div class="mobile-menu-content">
+ <div class="mobile-menu-section">
+ {% for menu in config.extra.extra_menu %}
+ <a class="mobile-nav-item" href="{{ menu.link | safe }}">{{ menu.title }}</a>
+ {% endfor %}
+ </div>
+ <div class="mobile-menu-divider"></div>
+ <div class="mobile-menu-section mobile-menu-toc">
+ {% set docs_section = get_section(path="_index.md") %}
+ {% set current_group = "" %}
+ {% for doc_page in docs_section.pages %}
+ {% set page_group = doc_page.extra.group | default(value="") %}
+ {% if page_group != current_group and page_group != "" %}
+ <div class="mobile-toc-group">{{ page_group }}</div>
+ {% set_global current_group = page_group %}
+ {% endif %}
+ <a class="mobile-toc-item" href="{{ doc_page.permalink | safe }}">{{ doc_page.title }}</a>
+ {% endfor %}
+ </div>
</div>
+ </nav>
+
+ <div class="hero">
+ {% block hero %}{% endblock hero %}
</div>
-</nav>
-<div class="hero">
- {% block hero %}{% endblock hero %}
-</div>
-{% endblock header %}
-
-{% block sidebar %}
-{% endblock sidebar %}
-
-{% block footer %}
-<footer>
- <span><a href="https://github.com/max-sixty/worktrunk">GitHub</a></span>
- <span><a href="https://crates.io/crates/worktrunk">Crates.io</a></span>
- <span><a href="/">Documentation</a></span>
- <span><a href="https://github.com/max-sixty/worktrunk/issues">Issues</a></span>
-</footer>
-{% endblock footer %}
+
+ <main>
+ {% block toc %}
+ {% set docs_section = get_section(path="_index.md") %}
+ {{ macros::toc_nav(docs_section=docs_section) }}
+ {% endblock toc %}
+
+ <div class="content">
+ {% block content %}
+ {{ section.content | safe }}
+ {% endblock content %}
+ </div>
+ </main>
+
+ <footer>
+ <span><a href="https://github.com/max-sixty/worktrunk">GitHub</a></span>
+ <span><a href="https://crates.io/crates/worktrunk">Crates.io</a></span>
+ <span><a href="/">Documentation</a></span>
+ <span><a href="https://github.com/max-sixty/worktrunk/issues">Issues</a></span>
+ </footer>
+</body>
+
+</html>
diff --git a/docs/templates/index.html b/docs/templates/index.html
index a3ebbf7ca..9fec48b3c 100644
--- a/docs/templates/index.html
+++ b/docs/templates/index.html
@@ -1,5 +1,4 @@
{% extends "base.html" %}
-{% import "macros.html" as macros %}
{% block hero %}
<style>
diff --git a/docs/templates/page.html b/docs/templates/page.html
index 70fc06eba..457713523 100644
--- a/docs/templates/page.html
+++ b/docs/templates/page.html
@@ -1,5 +1,4 @@
{% extends "base.html" %}
-{% import "macros.html" as macros %}
{% block title %}{{ page.title }} | {{ config.title }}{% endblock title %}
diff --git a/docs/themes/juice/.gitignore b/docs/themes/juice/.gitignore
deleted file mode 100644
index 9ab155705..000000000
--- a/docs/themes/juice/.gitignore
+++ /dev/null
@@ -1,5 +0,0 @@
-.idea
-.DS_Store
-public
-
-.vercel
diff --git a/docs/themes/juice/LICENSE b/docs/themes/juice/LICENSE
deleted file mode 100644
index ded5ff38f..000000000
--- a/docs/themes/juice/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2020 Huhu
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/docs/themes/juice/README.md b/docs/themes/juice/README.md
deleted file mode 100644
index f8d610726..000000000
--- a/docs/themes/juice/README.md
+++ /dev/null
@@ -1,129 +0,0 @@
-# Juice
-
-<img align="right" width="150" height="150" src="/content/juice.svg">
-
-**Juice** is an intuitive, elegant, and responsive Zola theme for product sites.
-
-- Build for product sites
-- Simple and intuitive structure
-- Clean and elegant design
-- Responsive and mobile device compatible
-- Customize and extend friendly
-
-https://juice.huhu.io
-
-# Installation
-
-First download this theme to your `themes` directory:
-
-```bash
-$ cd themes
-$ git clone https://github.com/huhu/juice.git
-```
-
-or add as a submodule
-```bash
-$ git submodule add https://github.com/huhu/juice themes/juice
-```
-
-and then enable it in your `config.toml`:
-
-```toml
-theme = "juice"
-```
-
-# Structure
-
-### Hero
-
-**Juice** is designed for product websites, hence we let **hero** part fills whole of screen.
-You can customize your **hero** by using `hero` block in the `templates/index.html`.
-
-```html
-{% extends "juice/templates/index.html" %}
-{% block hero %}
- <div>
- Your cool hero html...
- </div>
-{% endblock hero %}
-```
-
-### Page
-
-Every markdown file located in `content` directory will become a **Page**. There also will display as
-a navigate link on the top-right corner.
-You can change the frontmatter's `weight` value to sort the order (ascending order).
-
-```
-+++
-title = "Changelog"
-description = "Changelog"
-weight = 2
-+++
-
-```
-
-### CSS variables
-
-You can override theme variable by creating a file named `_variables.html` in your `templates` directory.
-
-See the default value [here](./templates/_variables.html)
-
-### Favicon
-The same way as changing the `hero` block in the `templates/index.html`, you can change the **favicon**.
-
-```html
-{% extends "juice/templates/index.html" %}
-{% block favicon %}
- <link rel="icon" type="image/png" href="/favicon.ico">
-{% endblock favicon %}
-```
-
-### Fonts
-If you changed the `--xy-font-family`-variable in `_variables.html`, you have to load the mentioned fonts in the `templates/index.html`.
-
-```html
-{% extends "juice/templates/index.html" %}
-{% block fonts %}
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/css/fork-awesome.min.css" rel="stylesheet" crossorigin="anonymous">
- <link href="https://fonts.googleapis.com/css2?family=Babylonica&display=swap" rel="stylesheet">
-{% endblock fonts %}
-```
-
-# Configuration
-
-You can customize some builtin property in `config.toml` file:
-
-```toml
-[extra]
-juice_logo_name = "Juice"
-juice_logo_path = "juice.svg"
-juice_extra_menu = [
- { title = "Github", link = "https://github.com/huhu/juice"}
-]
-juice_exclude_menu = [
- "exclude_from_nav"
-]
-repository_url = "https://github.com/huhu/juice"
-```
-
-# Shortcodes
-
-**Juice** have some builtin shortcodes available in `templates/shortcodes` directory.
-
-- `issue(id)` - A shortcode to render issue url, e.g. `issue(id=1)` would render to the link `https://github.com/huhu/juice/issue/1`.
-
-> The `repository_url` is required.
-
-# Showcases
-
-Please see the [showcases page](https://juice.huhu.io/showcases).
-
-# Contributing
-
-Thank you very much for considering contributing to this project!
-
-We appreciate any form of contribution:
-
-- New issues (feature requests, bug reports, questions, ideas, ...)
-- Pull requests (documentation improvements, code improvements, new features, ...)
diff --git a/docs/themes/juice/config.toml b/docs/themes/juice/config.toml
deleted file mode 100644
index f12efc8ad..000000000
--- a/docs/themes/juice/config.toml
+++ /dev/null
@@ -1,30 +0,0 @@
-# The URL the site will be built for
-base_url = "/"
-
-title = "Juice - An intuitive, elegant, and lightweight Zola theme for product sites."
-# default_language = "en"
-
-# Whether to automatically compile all Sass files in the sass directory
-compile_sass = true
-
-# Whether to build a search index to be used later on by a JavaScript library
-build_search_index = false
-
-# Configuration of the Markdown rendering
-[markdown]
-# Whether to do syntax highlighting
-# Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola
-highlight_code = true
-highlight_theme = "inspired-github"
-
-[extra]
-juice_logo_name = "Juice"
-juice_logo_path = "juice.svg"
-juice_extra_menu = [
- { title = "Github", link = "https://github.com/huhu/juice" }
-]
-# Add page titles here to exclude them from the nav section (case sensitive)
-juice_exclude_menu = [
- "exclude_from_nav"
-]
-repository_url = "https://github.com/huhu/juice"
diff --git a/docs/themes/juice/sass/_markdown.scss b/docs/themes/juice/sass/_markdown.scss
deleted file mode 100644
index 94cae0b25..000000000
--- a/docs/themes/juice/sass/_markdown.scss
+++ /dev/null
@@ -1,45 +0,0 @@
-.content {
- padding: 0 40px;
- display: flex;
- flex-direction: column;
- overflow-x: auto;
-}
-
-.content pre {
- overflow-x: auto;
- padding: 1.25em 1.5em;
- white-space: pre;
- word-wrap: normal;
- background-color: var(--code-background-color);
- color: var(--code-color);
- font-size: .875em;
- font-family: monospace;
-}
-
-.content code {
- background-color: var(--code-background-color);
- color: var(--code-color);
- font-size: .875em;
- font-weight: normal;
- padding: 0.25em 0.5em;
- font-family: monospace;
-}
-
-.content pre code {
- padding: 0;
-}
-
-.content a {
- color: var(--primary-link-color);
-
- &:hover {
- text-decoration: underline;
- }
-}
-
-.content blockquote {
- border-left: #e2dede 8px solid;
- margin: 0;
- background-color: #f2f1f0;
- padding: 0 20px;
-}
diff --git a/docs/themes/juice/sass/_text.scss b/docs/themes/juice/sass/_text.scss
deleted file mode 100644
index f55072b2e..000000000
--- a/docs/themes/juice/sass/_text.scss
+++ /dev/null
@@ -1,39 +0,0 @@
-.heading-text {
- font-family: var(--header-font-family);
- font-size: 32px;
- font-weight: 600;
- padding: 10px 0 25px 0;
- color: var(--primary-text-color);
-}
-
-h1, .title-text {
- font-family: var(--header-font-family);
- font-size: 25px;
- font-weight: 500;
- color: var(--primary-text-color);
- border-left: var(--primary-color) 8px solid;
- padding-left: 10px;
-}
-
-h2, .subtitle-text {
- font-family: var(--header-font-family);
- font-size: 20px;
- font-weight: 500;
- color: var(--primary-text-color);
-}
-
-.text {
- font-family: var(--text-font-family);
- font-size: 18px;
- font-weight: 400;
- line-height: 26px;
- letter-spacing: 0.2px;
- color: var(--primary-text-color);
-}
-
-.subtext {
- font-family: var(--text-font-family);
- font-size: 16px;
- font-weight: 400;
- letter-spacing: 0.1px;
-}
diff --git a/docs/themes/juice/sass/_utility.scss b/docs/themes/juice/sass/_utility.scss
deleted file mode 100644
index 59b76e9aa..000000000
--- a/docs/themes/juice/sass/_utility.scss
+++ /dev/null
@@ -1,13 +0,0 @@
-.text-center {
- text-align: center;
-}
-
-.pos-absolute {
- right: 0;
- left: 0;
- position: absolute;
-}
-
-.box-shadow {
- box-shadow: 0 2px 10px 2px var(--shadow-color);
-}
diff --git a/docs/themes/juice/sass/carbon.scss b/docs/themes/juice/sass/carbon.scss
deleted file mode 100644
index 4d00ebe82..000000000
--- a/docs/themes/juice/sass/carbon.scss
+++ /dev/null
@@ -1,65 +0,0 @@
-#carbonads * {
- margin: initial;
- padding: initial;
-}
-#carbonads {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
- Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', Helvetica, Arial,
- sans-serif;
-}
-#carbonads {
- position: sticky;
- top: 10px;
- display: flex;
- max-width: 330px;
- z-index: 100;
-}
-#carbonads a {
- color: inherit;
- text-decoration: none;
-}
-#carbonads a:hover {
- color: inherit;
-}
-#carbonads span {
- position: relative;
- display: block;
- overflow: hidden;
-}
-#carbonads .carbon-wrap {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- padding: 20px 10px;
- text-align: center;
-}
-#carbonads .carbon-img {
- display: block;
- margin: 0;
- line-height: 1;
-}
-#carbonads .carbon-img img {
- display: block;
-}
-#carbonads .carbon-text {
- font-size: 13px;
- padding: 10px;
- margin-bottom: 16px;
- line-height: 1.5;
-}
-#carbonads .carbon-poweredby {
- display: block;
- padding: 6px 8px;
- background: #f1f1f2;
- text-align: center;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- font-weight: 600;
- font-size: 8px;
- line-height: 1;
- border-top-left-radius: 3px;
- position: absolute;
- bottom: 0;
- right: 0;
-}
diff --git a/docs/themes/juice/sass/juice.scss b/docs/themes/juice/sass/juice.scss
deleted file mode 100644
index a1ed9a434..000000000
--- a/docs/themes/juice/sass/juice.scss
+++ /dev/null
@@ -1,206 +0,0 @@
-@import "_utility.scss";
-@import "_text.scss";
-@import "_markdown.scss";
-
-body {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- background-color: var(--secondary-color);
- display: flex;
- flex-direction: column;
- min-height: 100vh;
-}
-
-a {
- text-decoration: none;
-}
-
-ul {
- margin-top: 0.5rem;
-}
-
-ul > li {
- padding: 0.3rem 0;
-}
-
-p > img {
- width: 100%;
- height: auto;
-}
-
-header {
- background-color: var(--primary-color);
- color: var(--primary-text-color);
- padding: 20px 50px;
- display: flex;
- align-items: center;
- justify-content: space-between;
-}
-
-.logo {
- font-family: "Alfa Slab One", serif;
- font-size: 32px;
- color: var(--primary-text-color);
- display: flex;
- align-items: center;
- margin: 0 40px;
-
- img {
- width: 60px;
- margin: 0 25px;
- }
-}
-
-.nav-item {
- margin: 0 10px;
- text-decoration: none;
- font-size: 18px;
- font-weight: bold;
-
- &:hover {
- color: var(--primary-text-color-over);
- text-decoration: underline;
- }
-}
-
-.hero {
- display: flex;
- align-items: center;
- justify-content: space-evenly;
- height: 100vh;
- background-color: var(--primary-color);
- overflow-x: hidden;
- padding: 0 40px;
-
- .explore-more {
- position: absolute;
- bottom: 20px;
- cursor: pointer;
- }
-}
-
-main {
- display: flex;
- padding: 50px 100px;
- flex-grow: 1;
-
- .toc {
- max-width: 260px;
- min-width: 240px;
- }
-
- .toc-item {
- padding: 10px 20px;
- color: #424242;
- }
-
- .toc-item a, .toc-item-child a {
- color: var(--secondary-text-color);
-
- &:hover {
- cursor: pointer;
- text-decoration: underline;
- }
- }
-
- .toc-item a.active, .toc-item-child a.active {
- color: var(--toc-highlight-text-color);
- }
-
- .toc-item-child {
- padding: 0 30px 5px;
- color: #424242;
- }
-
-}
-
-.toc-sticky {
- border-radius: 3px;
- border-top: 5px solid var(--primary-color);
- background-color: var(--toc-background-color);
- position: sticky;
- position: -webkit-sticky;
- position: -moz-sticky;
- position: -ms-sticky;
- position: -o-sticky;
- top: 10px;
- padding: 10px 0 20px;
- max-height: 100vh;
- overflow: auto;
-}
-
-footer {
- padding: 50px;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- background-color: #202020;
- color: #fcfcfc;
-
- a {
- color: #fcfcfc;
- text-decoration: underline;
- }
-}
-
-@media screen and (min-width: 1280px) {
- .content {
- max-width: 60%;
- min-width: 800px;
- }
-}
-
-@media screen and (max-width: 768px) {
- header {
- padding: 10px 30px;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- }
-
- .logo {
- font-size: 28px;
- margin: 10px;
-
- img {
- width: 45px;
- margin: 0 10px 0 0;
- }
- }
-
- .nav-item {
- margin: 0 5px;
- font-size: 14px;
- }
-
- .hero {
- padding: 40px 30px;
- }
-
- main {
- padding: 30px;
- }
-
- .content {
- padding: 0;
- }
-
- .explore-more, .toc {
- display: none;
- }
-
- main {
- padding: 30px;
- display: flex;
- flex-direction: column;
- }
-
- .sidebar {
- position: relative;
- width: 215px;
- margin: 2rem auto 0;
- }
-
-}
diff --git a/docs/themes/juice/screenshot.png b/docs/themes/juice/screenshot.png
deleted file mode 100644
index 3150b2159..000000000
Binary files a/docs/themes/juice/screenshot.png and /dev/null differ
diff --git a/docs/themes/juice/templates/_macros.html b/docs/themes/juice/templates/_macros.html
deleted file mode 100644
index 7cde02c37..000000000
--- a/docs/themes/juice/templates/_macros.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% macro render_header() %}
-{% set section = get_section(path="_index.md") %}
-<a href="{{ section.permalink | safe }}">
- <div class="logo">
- <img src="{{ get_url(path=config.extra.juice_logo_path) }}" alt="logo">
- {{ config.extra.juice_logo_name }}
- </div>
-</a>
-
-<nav>
- {% for page in section.pages %}
- {% set exclude_menu = config.extra.juice_exclude_menu | default(value=[]) %}
- {% if exclude_menu is not containing(page.title) %}
- <a class="nav-item subtitle-text" href="{{ page.permalink | safe }}">{{ page.title }}</a>
- {% endif %}
- {% endfor %}
- {% if config.extra.juice_extra_menu %}
- {% for menu in config.extra.juice_extra_menu %}
- <a class="nav-item subtitle-text" href="{{ menu.link | safe }}">{{ menu.title }}</a>
- {% endfor %}
- {% endif %}
-</nav>
-{% endmacro render_header %}
diff --git a/docs/themes/juice/templates/_variables.html b/docs/themes/juice/templates/_variables.html
deleted file mode 100644
index 5fe3faa10..000000000
--- a/docs/themes/juice/templates/_variables.html
+++ /dev/null
@@ -1,45 +0,0 @@
-<style>
- :root {
- /* Primary theme color */
- --primary-color: #FED43F;
- /* Primary theme text color */
- --primary-text-color: #543631;
- --primary-text-color-over: #000;
- /* Primary theme link color */
- --primary-link-color: #F9BB2D;
- /* Secondary color: the background body color */
- --secondary-color: #fcfaf6;
- --secondary-text-color: #303030;
- /* Highlight text color of table of content */
- --toc-highlight-text-color: #d46e13;
- --toc-background-color: white;
- --code-color: #4a4a4a;
- --code-background-color: white;
-
- --shadow-color: #ddd;
-
- /* Font used for headers (h1 & h2) */
- --header-font-family: "Fira Sans", sans-serif;
- /* Font used for text */
- --text-font-family: "Fira Sans", sans-serif;
- }
-
- @media (prefers-color-scheme: dark) {
- :root {
- --primary-color: #382929;
- --primary-text-color: #d7d7d7;
- --primary-text-color-over: #FFF;
- --primary-link-color: #9b9b9b;
- --secondary-color: #282828;
- --secondary-text-color: #f2f2f2;
- --toc-highlight-text-color: #f2f2f2;
- --toc-background-color: #3a3a3a;
- --code-color: white;
- --code-background-color: #4a4a4a;
-
- --shadow-color: #202020;
- --header-font-family: "Fira Sans", sans-serif;
- --text-font-family: "Fira Sans", sans-serif;
- }
- }
-</style>
diff --git a/docs/themes/juice/templates/index.html b/docs/themes/juice/templates/index.html
deleted file mode 100644
index 027a7f059..000000000
--- a/docs/themes/juice/templates/index.html
+++ /dev/null
@@ -1,149 +0,0 @@
-{% import "_macros.html" as macros %}
-<!DOCTYPE html>
-<html lang="{{ lang }}">
-
-<head>
- <meta charset="UTF-8">
- <title>{% block title %}{{ config.title }}{% endblock title %}</title>
- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
- {% block favicon %}
- <link rel="icon" type="image/png" href="/favicon.ico">
- {% endblock favicon %}
- {% include "_variables.html" %}
- {% block fonts %}
- <link href="https://fonts.googleapis.com/css?family=Alfa+Slab+One&display=swap" rel="stylesheet">
- <link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600&display=swap" rel="stylesheet">
- {% endblock fonts %}
- <link rel="stylesheet" href="/normalize.css">
- <link rel="stylesheet" href="{{ get_url(path="juice.css") }}">
- {% block head %}
- <link rel="stylesheet" href="{{ get_url(path="carbon.css") }}">
- {% endblock head %}
-</head>
-
-<body>
- {% block header %}
-
- <header class="pos-absolute" style="background-color: transparent">
- {{ macros::render_header() }}
- </header>
-
- <div class="hero">
- {% block hero %}
- <script async defer src="https://buttons.github.io/buttons.js"></script>
- <section class="text-center">
- <h1 class="heading-text" style="font-size: 50px">
- Build your static website
- </h1>
- <h3 class="title-text">
- <b>Juice</b> is an intuitive, elegant, and lightweight Zola theme for product websites.
- </h3>
- <div>
- <a class="github-button" href="https://github.com/huhu/juice" data-size="large" data-show-count="true"
- aria-label="Star huhu/juice on GitHub">Star</a>
- <a class="github-button" href="https://github.com/huhu/juice/fork" data-size="large"
- data-show-count="true" aria-label="Fork huhu/juice on GitHub">Fork</a>
- </div>
- </section>
- <img class="hero-image" style="width: 50%" src="{{ get_url(path="juice.svg") }}">
-
- <div class="explore-more text"
- onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})">
- Explore More ⇩
- </div>
- <style>
- .hero section {
- padding: 0 5rem;
- }
-
- @media screen and (max-width: 768px) {
- .hero section {
- padding: 0 2rem;
- }
-
- .hero-image {
- display: none
- }
- }
- </style>
- {% endblock hero %}
- </div>
-
- {% endblock header %}
-
- <main>
- {% block toc %}
- {% if section.toc %}
- {% set toc = section.toc %}
- {% elif page.toc %}
- {% set toc = page.toc %}
- {% endif %}
- {% if toc %}
- <div class="toc">
- <div class="toc-sticky">
- {% for h in toc %}
- <div class="toc-item">
- <a class="subtext" href="{{h.permalink | safe}}">{{ h.title }}</a>
- </div>
- {% if h.children %}
- {% for h2 in h.children %}
- <div class="toc-item-child">
- <a class="subtext" href="{{h2.permalink | safe}}"><small>- {{ h2.title }}</small></a>
- </div>
- {% endfor %}
- {% endif %}
- {% endfor %}
- </div>
- </div>
- {% endif %}
- {% endblock toc %}
-
- <div class="content text">
- {% block content %}
- <div id="features" class="heading-text">Overview</div>
- {{ section.content | safe }}
- {% endblock content %}
- </div>
-
- {% block sidebar %}
- <div class="sidebar">
- Your can customize the sidebar.
- <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CEBIL27E&placement=extensionsh" id="_carbonads_js"></script>
- </div>
- {% endblock sidebar %}
- </main>
-
- {% block footer %}
- <footer>
- <small class="subtext">
- <a href="https://huhu.io">Huhu.io</a> © 2021
- </small>
- </footer>
- {% endblock footer %}
-</body>
-<script>
- const scrollHandler = entries => {
- // Find the first entry which intersecting and ratio > 0.9 to highlight.
- let entry = entries.find(entry => {
- return entry.isIntersecting && entry.intersectionRatio > 0.9;
- });
- if (!entry) return;
-
- document.querySelectorAll(".toc a").forEach((item) => {
- item.classList.remove("active");
- });
-
- // let url = new URL(`#${entry.target.id}`);
- let link = document.querySelector(`.toc a[href$="${decodeURIComponent(`#${entry.target.id}`)}"]`)
- if (link) {
- link.classList.add("active");
- link.scrollIntoView({ behavior: "auto", block: "nearest" });
- }
- };
- // Set -100px root margin to improve highlight experience.
- const observer = new IntersectionObserver(scrollHandler, { threshold: 1 });
- let items = document.querySelectorAll('h1,h2,h3,h4,h5,h6');
- items.forEach(item => observer.observe(item));
-</script>
-
-</html>
diff --git a/docs/themes/juice/templates/page.html b/docs/themes/juice/templates/page.html
deleted file mode 100644
index 61e8811e2..000000000
--- a/docs/themes/juice/templates/page.html
+++ /dev/null
@@ -1,15 +0,0 @@
-{% import "_macros.html" as macros %}
-{% extends "index.html" %}
-
-{% block title %}{{ page.title }} | {{ super() }} {% endblock title %}
-
-{% block header %}
-<header class="box-shadow">
- {{ macros::render_header() }}
-</header>
-{% endblock header %}
-
-{% block content %}
-<div class="heading-text">{{ page.description }}</div>
-{{ page.content | safe }}
-{% endblock content %}
diff --git a/docs/themes/juice/templates/shortcodes/issue.html b/docs/themes/juice/templates/shortcodes/issue.html
deleted file mode 100644
index d6f279e84..000000000
--- a/docs/themes/juice/templates/shortcodes/issue.html
+++ /dev/null
@@ -1 +0,0 @@
-<a href="{{ config.extra.repository_url }}/issues/{{ id }}">#{{ id }}</a>
diff --git a/docs/themes/juice/theme.toml b/docs/themes/juice/theme.toml
deleted file mode 100644
index 79e59f50f..000000000
--- a/docs/themes/juice/theme.toml
+++ /dev/null
@@ -1,12 +0,0 @@
-name = "juice"
-description = "An intuitive, elegant, and lightweight Zola theme for product sites."
-license = "MIT"
-homepage = "https://github.com/huhu/juice"
-min_version = "0.11.0"
-demo = "https://juice.huhu.io"
-
-[extra]
-
-[author]
-name = "Huhu teams"
-homepage = "https://huhu.io"
diff --git a/docs/themes/juice/vercel.json b/docs/themes/juice/vercel.json
deleted file mode 100644
index 7ae9a3de5..000000000
--- a/docs/themes/juice/vercel.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "github": {
- "silent": true
- }
-}