Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ site:
User-agent: FacebookBot
Allow: /
keys:
announcement: false
announcement: true
announcement-text: 'New! Redpanda SQL is here: query your event streams with familiar SQL syntax.'
announcement-link-text: 'Learn more'
announcement-link: 'https://www.redpanda.com/blog/redpanda-sql-ga'
Expand Down Expand Up @@ -83,7 +83,7 @@ content:
branches: main
ui:
bundle:
url: https://github.com/redpanda-data/docs-ui/releases/download/v3.0.0-beta.23/ui-bundle.zip
url: https://github.com/redpanda-data/docs-ui/releases/latest/download/ui-bundle.zip
snapshot: true
asciidoc:
attributes:
Expand Down
2 changes: 1 addition & 1 deletion data-platform/modules/ROOT/pages/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// === HERO SECTION ===
:page-hero-eyebrow: REDPANDA DATA PLATFORM
:page-hero-title: pass:[The streaming foundation<br>for everything you build.]
:page-hero-subtitle: Run Redpanda on your infrastructure or let us manage it in the cloud. Then connect it to everything else with declarative pipelines.
:page-hero-subtitle: Let us manage Redpanda in the cloud or run it on your infrastructure. Then connect it to everything else with declarative pipelines.
:page-hero-stat1-number: 10x
:page-hero-stat1-text: faster than Kafka, same wire
:page-hero-stat2-number: 300+
Expand Down
2 changes: 1 addition & 1 deletion local-antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ content:
#branches: feature/platform-badges
ui:
bundle:
url: https://github.com/redpanda-data/docs-ui/releases/download/v3.0.0-beta.12/ui-bundle.zip
url: https://github.com/redpanda-data/docs-ui/releases/latest/download/ui-bundle.zip
snapshot: true
asciidoc:
attributes:
Expand Down
112 changes: 107 additions & 5 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ path = "/api/*"
function = "proxy-api-docs"

# Serve markdown content when Accept: text/markdown header is present
# TEMPORARILY DISABLED for debugging
# [[edge_functions]]
# path = "/*"
# function = "serve-markdown"
[[edge_functions]]
path = "/*"
function = "serve-markdown"

# ========Beta redirects==========
[[redirects]]
Expand Down Expand Up @@ -234,6 +233,38 @@ status = 301

# ================End of life versions===================

# EOL version root redirects (redirect to current)
[[redirects]]
from = "/23.2"
to = "/streaming/current/home/"
status = 301

[[redirects]]
from = "/23.1"
to = "/streaming/current/home/"
status = 301

[[redirects]]
from = "/22.3"
to = "/streaming/current/home/"
status = 301

[[redirects]]
from = "/22.2"
to = "/streaming/current/home/"
status = 301

[[redirects]]
from = "/22.1"
to = "/streaming/current/home/"
status = 301

[[redirects]]
from = "/21.11"
to = "/streaming/current/home/"
status = 301

# EOL version wildcard redirects
[[redirects]]
from = "/23.2/*"
to = "/streaming/current/:splat"
Expand Down Expand Up @@ -264,6 +295,39 @@ from = "/21.11/*"
to = "/streaming/current/:splat"
status = 301

# ================End of life versions (streaming paths)=================
# Catch-all redirects for streaming-prefixed old version paths

[[redirects]]
from = "/streaming/23.2/*"
to = "/streaming/current/:splat"
status = 301

[[redirects]]
from = "/streaming/23.1/*"
to = "/streaming/current/:splat"
status = 301

[[redirects]]
from = "/streaming/22.3/*"
to = "/streaming/current/:splat"
status = 301

[[redirects]]
from = "/streaming/22.2/*"
to = "/streaming/current/:splat"
status = 301

[[redirects]]
from = "/streaming/22.1/*"
to = "/streaming/current/:splat"
status = 301

[[redirects]]
from = "/streaming/21.11/*"
to = "/streaming/current/:splat"
status = 301

# ========= Component rename redirects =====================

# Redirect /current/* to /streaming/current/*
Expand All @@ -288,6 +352,44 @@ from = "/redpanda-labs/*"
to = "/labs/:splat"
status = 301

# ========= Version root redirects =====================

# Redirect version roots to their streaming component equivalents
[[redirects]]
from = "/25.3"
to = "/streaming/25.3/home/"
status = 301

[[redirects]]
from = "/25.2"
to = "/streaming/25.2/home/"
status = 301

[[redirects]]
from = "/25.1"
to = "/streaming/25.1/home/"
status = 301

[[redirects]]
from = "/24.3"
to = "/streaming/24.3/home/"
status = 301

[[redirects]]
from = "/24.2"
to = "/streaming/24.2/home/"
status = 301

[[redirects]]
from = "/24.1"
to = "/streaming/24.1/home/"
status = 301

[[redirects]]
from = "/23.3"
to = "/streaming/23.3/home/"
status = 301

# ========= Docker example redirects =====================

[[redirects]]
Expand Down Expand Up @@ -400,7 +502,7 @@ status = 301

[[redirects]]
from = "/blog/*"
to = "/connect/about/"
to = "/connect/home/"
status = 301

# =========Cloud redirects========
Expand Down
44 changes: 44 additions & 0 deletions netlify/edge-functions/proxy-api-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ export default async (request, context) => {
headScript,
headerWidget,
footerWidget,
chatPanelWidget,
] = await Promise.all([
bumpRes.text(),
fetchWidget(`${originalOrigin}/assets/widgets/head-bump.html`, "head-bump"),
fetchWidget(`${originalOrigin}/assets/widgets/header.html`, "header"),
fetchWidget(`${originalOrigin}/assets/widgets/footer.html`, "footer"),
fetchWidget(`${originalOrigin}/assets/widgets/chat-panel-bump.html`, "chat-panel"),
]);

let document;
Expand Down Expand Up @@ -166,6 +168,15 @@ export default async (request, context) => {
}
}

// Inject chat panel (Ask AI drawer)
if (bottomBody && chatPanelWidget) {
const wrapper = document.createElement("div");
wrapper.innerHTML = chatPanelWidget;
while (wrapper.firstChild) {
bottomBody.appendChild(wrapper.firstChild);
}
}

// Inject llms.txt directive for AI agent discovery
const body = document.querySelector("body");
if (body) {
Expand All @@ -188,6 +199,39 @@ export default async (request, context) => {
style.textContent = ".llms-directive{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}";
head.appendChild(style);
}

// Inject CSS fixes for chat panel and dark mode on Bump.sh pages
if (head) {
const fixStyle = document.createElement("style");
fixStyle.textContent = `
/* Fix chat panel top offset - account for fixed navbar */
.chat-panel { top: var(--navbar-height, 70px) !important; height: calc(100vh - var(--navbar-height, 70px)) !important; }

/* Fix chat head icons - ensure SVGs are visible */
.chat-head-btn svg { stroke: currentColor !important; }
.chat-head-icon svg { fill: currentColor !important; }

/* Dark mode fixes using html[data-theme="dark"] selector (Bump pages use this, not .dark-theme) */
html[data-theme="dark"] .navbar { background: #0f172a !important; }
html[data-theme="dark"] .chat-panel { background: #1a2332 !important; color: #e8eef6 !important; border-left-color: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] .chat-head { border-bottom-color: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] .chat-head-name { color: #e8eef6 !important; }
html[data-theme="dark"] .chat-head-sub { color: #7c8ca8 !important; }
html[data-theme="dark"] .chat-head-btn { color: #7c8ca8 !important; }
html[data-theme="dark"] .chat-head-btn:hover { background: rgba(255,255,255,0.05) !important; color: #e8eef6 !important; }
html[data-theme="dark"] .chat-foot { color: #7c8ca8 !important; border-top-color: rgba(255,255,255,0.08) !important; }
html[data-theme="dark"] #chat-panel-kapa-root { color: #e8eef6 !important; }
html[data-theme="dark"] #chat-panel-kapa-root .welcome-icon { background: linear-gradient(135deg, #312e81 0%, #3730a3 100%) !important; color: #a5b4fc !important; }
html[data-theme="dark"] #chat-panel-kapa-root .welcome-title { color: #e8eef6 !important; }
html[data-theme="dark"] #chat-panel-kapa-root .welcome-description { color: #7c8ca8 !important; }
html[data-theme="dark"] #chat-panel-kapa-root .suggestion-card { background: #232f3e !important; border-color: rgba(255,255,255,0.1) !important; color: #aab8ca !important; }
html[data-theme="dark"] #chat-panel-kapa-root .suggestion-card:hover { background: #2a3a4d !important; border-color: rgba(255,255,255,0.15) !important; color: #e8eef6 !important; }
html[data-theme="dark"] #chat-panel-kapa-root .chat-input-wrapper { background: #232f3e !important; border-color: rgba(255,255,255,0.1) !important; }
html[data-theme="dark"] #chat-panel-kapa-root .chat-input-wrapper .chat-input { background: transparent !important; color: #e8eef6 !important; }
html[data-theme="dark"] #chat-panel-kapa-root .disclaimer { color: #7c8ca8 !important; background: #1a2332 !important; }
`.replace(/\s+/g, ' ').trim();
head.appendChild(fixStyle);
}
}

const htmlOutput = document.documentElement?.outerHTML || originalHtml;
Expand Down
6 changes: 2 additions & 4 deletions preview-antora-playbook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ site:
start_page: home:ROOT:index.adoc
url: https://redpanda-antora-site.netlify.app
keys:
announcement: false
announcement: true
announcement-text: 'New! Redpanda SQL is here: query your event streams with familiar SQL syntax.'
announcement-link-text: 'Learn more'
announcement-link: 'https://www.redpanda.com/blog/redpanda-sql-ga'
Expand Down Expand Up @@ -33,7 +33,7 @@ content:
branches: main
ui:
bundle:
url: https://github.com/redpanda-data/docs-ui/releases/download/v3.0.0-beta.23/ui-bundle.zip
url: https://github.com/redpanda-data/docs-ui/releases/latest/download/ui-bundle.zip
snapshot: true
asciidoc:
attributes:
Expand Down Expand Up @@ -97,8 +97,6 @@ antora:
line_color: '#e2401b'
font_family: Inter, sans-serif
- require: '@redpanda-data/docs-extensions-and-macros/extensions/modify-redirects'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/algolia-indexer/index'
excludes: ['.thumbs','script', '.page-versions','.feedback-section','.banner-container']
- require: '@redpanda-data/docs-extensions-and-macros/extensions/unpublish-pages'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/unlisted-pages'
- require: '@redpanda-data/docs-extensions-and-macros/extensions/add-global-attributes'
Expand Down
Loading