feat(guide): updating section (#11322)

feat: sidebar, layout, initial content

Co-authored-by: Jiralite <33201955+Jiralite@users.noreply.github.com>
This commit is contained in:
Souji
2025-11-28 12:37:19 +01:00
committed by GitHub
parent b2cbdf1567
commit 444e55a093
5 changed files with 377 additions and 2 deletions

View File

@@ -9,7 +9,11 @@ export function middleware(request: NextRequest) {
}
// Redirect old urls to /legacy
if (!request.nextUrl.pathname.startsWith('/legacy') && !request.nextUrl.pathname.startsWith('/voice')) {
if (
!request.nextUrl.pathname.startsWith('/legacy') &&
!request.nextUrl.pathname.startsWith('/voice') &&
!request.nextUrl.pathname.startsWith('/v15')
) {
const newUrl = request.nextUrl.clone();
newUrl.pathname = `/legacy${newUrl.pathname}`;
return NextResponse.redirect(newUrl);

View File

@@ -28,6 +28,7 @@
:root {
--legacy-color: hsl(153, 48%, 41%);
--voice-color: hsl(211.3, 66.1%, 65.3%);
--v15-color: oklch(70.4% 0.191 22.216);
}
.legacy {
@@ -37,3 +38,7 @@
.voice {
--color-fd-primary: var(--voice-color);
}
.v15 {
--color-fd-primary: var(--v15-color);
}