docs/theme.config.tsx

98 lines
3.4 KiB
TypeScript
Raw Normal View History

2024-03-30 20:25:15 +00:00
import { defineTheme, directory, group, link, social } from '@neato/guider/theme';
import { Logo } from './components/Logo';
2024-03-31 00:28:50 +00:00
import { NextSeo } from 'next-seo';
import coverUrl from "./public/cover.png";
2024-03-31 00:33:03 +00:00
import faviconUrl from "./public/favicon.ico";
2024-03-31 00:28:50 +00:00
export default defineTheme({
2024-04-25 17:59:10 +00:00
github: "sussy-code/smov",
2024-03-30 20:25:15 +00:00
contentFooter: {
2024-04-25 17:59:10 +00:00
text: "Made with :3 (sillyness)",
editRepositoryBase: "https://github.com/sussy-code/docs/blob/master",
2024-03-30 20:25:15 +00:00
socials: [
2024-04-25 17:59:10 +00:00
social.github("https://github.com/sussy-code"),
social.discord("https://discord.gg/9vmr6vBQKS"),
2024-03-30 20:25:15 +00:00
]
},
2024-03-31 00:28:50 +00:00
meta: (pageMeta) => (
<NextSeo {...{
2024-04-25 17:59:10 +00:00
title: `${pageMeta.title ?? "Watch your favorite shows and movies for free with no ads ever! (っ'ヮ'c)"} | sudo-flix`,
description: pageMeta.description ?? "sudo-flix is a free and open source streaming site, no ads, no tracking, no nonsense.",
2024-03-31 00:28:50 +00:00
openGraph: {
images: [{
url: coverUrl.src,
}],
2024-04-25 17:59:10 +00:00
title: `${pageMeta.title ?? "Watch your favorite shows and movies for free with no ads ever! (っ'ヮ'c)"} | sudo-flix`,
description: pageMeta.description ?? "sudo-flix is a free and open source streaming site, no ads, no tracking, no nonsense.",
2024-03-31 00:28:50 +00:00
},
twitter: {
cardType: 'summary_large_image',
},
2024-03-31 00:33:03 +00:00
additionalLinkTags: [
{
href: faviconUrl.src,
rel: "icon",
type: "image/x-icon",
}
]
2024-03-31 00:28:50 +00:00
}} />
),
settings: {
2024-03-30 20:25:15 +00:00
logo: () => <Logo />,
colors: {
"primary": "#A476D9",
"primaryLighter": "#C4ADDE",
"primaryDarker": "#6E23C3",
"background": "#0C0B13",
"backgroundLighter": "#1A1726",
"backgroundLightest": "#282438",
"backgroundDarker": "#000000",
"line": "#37334C",
"text": "#8C899A",
"textLighter": "#A6A4AE",
"textHighlight": "#fff"
}
},
directories: [
directory("main", {
sidebar: [
2024-04-25 18:45:10 +00:00
group("Global", [
link("Instances", "/instances", { icon: 'mdi:web' }),
link("Browser extension", "/extension", { icon: 'mdi:plugin' }),
]),
group("Self-Hosting", [
link("Start self-hosting", "/self-hosting/hosting-intro"),
link("Configure backend", "/self-hosting/use-backend"),
link("PWA vs no-PWA", "/self-hosting/about-pwa"),
link("Troubleshooting", "/self-hosting/troubleshooting"),
]),
group("Proxy", [
link("Introduction", "/proxy/introduction"),
link("Deploy", "/proxy/deploy"),
link("Configuration", "/proxy/configuration"),
link("Changelog", "/proxy/changelog"),
]),
group("Client", [
link("Introduction", "/client/introduction"),
link("Deploy", "/client/deploy"),
link("TMDB API Key", "/client/tmdb"),
link("Configuration", "/client/configuration"),
link("Changelog", "/client/changelog"),
link("Update guide", "/client/upgrade"),
]),
group("Backend", [
link("Introduction", "/backend/introduction"),
link("Deploy", "/backend/deploy"),
link("Configuration", "/backend/configuration"),
link("Changelog", "/backend/changelog"),
link("Update guide", "/backend/upgrade"),
]),
group("Extra", [
link("Streaming", "/extra/streaming"),
link("Selfhost", "/extra/selfhost"),
])
]
})
],
});