feat: Implement Algolia DocSearch, update build configurations, and refine UI components.

This commit is contained in:
gitfromwildan
2026-02-08 23:36:19 +07:00
parent d91f94b308
commit dff814e201
45 changed files with 1648 additions and 1146 deletions

View File

@@ -10,16 +10,76 @@ interface SponsorItem {
description?: string;
}
interface NavbarConfig {
title?: string;
logo?: {
light?: string;
dark?: string;
};
links?: Array<{
title: string;
href: string;
external?: boolean;
}>;
}
interface FooterConfig {
text?: string;
links?: Array<{
title: string;
href: string;
external?: boolean;
}>;
}
interface MetaConfig {
title?: string;
description?: string;
favicon?: string;
socialBanner?: string;
}
interface RepositoryConfig {
url: string;
editUrl?: string;
branch?: string;
directory?: string;
}
interface RouteItem {
title: string;
href: string;
noLink?: boolean;
context?: {
icon: string;
description: string;
title: string;
};
items?: RouteItem[];
}
interface RouteConfig {
title: string;
href: string;
noLink?: boolean;
context?: {
icon: string;
description: string;
title: string;
};
items?: RouteItem[];
}
interface DocuConfig {
sponsor?: {
title?: string;
item?: SponsorItem;
};
navbar: any; // Anda bisa mendefinisikan tipe yang lebih spesifik jika diperlukan
footer: any;
meta: any;
repository: any;
routes: any[];
navbar: NavbarConfig;
footer: FooterConfig;
meta: MetaConfig;
repository: RepositoryConfig;
routes: RouteConfig[];
}
// Type assertion for docu.json