mediahub-fe/theme.config.tsx

50 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-11-28 17:23:53 +00:00
import React from "react";
import { DocsThemeConfig } from "nextra-theme-docs";
import DashCodeLogo from "@/components/dascode-logo";
2024-11-26 03:09:48 +00:00
const config: DocsThemeConfig = {
logo: (
<span className=" inline-flex gap-2.5 items-center">
<DashCodeLogo className=" text-default-900 h-8 w-8 [&>path:nth-child(3)]:text-background [&>path:nth-child(2)]:text-background" />
<span className=" text-lg font-bold text-default ">Dashcode</span>
</span>
),
project: {
link: "https://github.com/shuding/nextra",
},
banner: {
key: "1.0-release",
text: (
<a href="/dashboard" target="_blank">
🎉 Dashcode
</a>
),
},
footer: {
text: (
<span>
{new Date().getFullYear()} ©{" "}
<a href="https://codeshaper.net/" target="_blank">
CodeShaper
</a>
.
</span>
),
},
themeSwitch: {
useOptions() {
return {
2024-11-28 17:23:53 +00:00
light: "Light",
dark: "Dark",
system: "System", // Add this line
2024-11-26 03:09:48 +00:00
};
},
},
useNextSeoProps() {
return {
titleTemplate: "%s Dashcode",
};
},
};
2024-11-28 17:23:53 +00:00
export default config;