152 lines
3.4 KiB
TypeScript
152 lines
3.4 KiB
TypeScript
import {themes as prismThemes} from 'prism-react-renderer';
|
|
import type {Config} from '@docusaurus/types';
|
|
import type * as Preset from '@docusaurus/preset-classic';
|
|
|
|
const config: Config = {
|
|
title: 'Songs2VID',
|
|
tagline: 'Self-host image + audio to YouTube (payment-free OSS)',
|
|
favicon: 'img/favicon.png',
|
|
|
|
future: {
|
|
v4: true,
|
|
},
|
|
|
|
url: 'https://docs.songs2vid.com',
|
|
baseUrl: '/',
|
|
|
|
organizationName: 'songs2vid',
|
|
projectName: 's2yt',
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
i18n: {
|
|
defaultLocale: 'en',
|
|
locales: ['en'],
|
|
},
|
|
|
|
scripts: [
|
|
{
|
|
src: '/js/matomo.js',
|
|
async: true,
|
|
},
|
|
],
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
{
|
|
docs: {
|
|
sidebarPath: './sidebars.ts',
|
|
routeBasePath: 'docs',
|
|
},
|
|
blog: false,
|
|
theme: {
|
|
customCss: './src/css/custom.css',
|
|
},
|
|
} satisfies Preset.Options,
|
|
],
|
|
],
|
|
|
|
themeConfig: {
|
|
image: 'img/docusaurus-social-card.jpg',
|
|
colorMode: {
|
|
defaultMode: 'dark',
|
|
respectPrefersColorScheme: true,
|
|
},
|
|
navbar: {
|
|
title: '',
|
|
logo: {
|
|
alt: 'Songs2VID',
|
|
src: 'img/logo.png',
|
|
href: '/',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'docsSidebar',
|
|
position: 'left',
|
|
label: 'Docs',
|
|
},
|
|
{
|
|
href: 'https://www.songs2vid.com',
|
|
label: 'App',
|
|
position: 'right',
|
|
},
|
|
{
|
|
href: 'https://git.atakanozban.com/Songs2VID',
|
|
label: 'Gitea',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Docs',
|
|
items: [
|
|
{
|
|
label: 'Introduction',
|
|
to: '/docs/intro',
|
|
},
|
|
{
|
|
label: 'Getting started',
|
|
to: '/docs/getting-started',
|
|
},
|
|
{
|
|
label: 'REST API',
|
|
to: '/docs/api/overview',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Product',
|
|
items: [
|
|
{
|
|
label: 'Songs2VID',
|
|
href: 'https://www.songs2vid.com',
|
|
},
|
|
{
|
|
label: 'Docker Hub',
|
|
href: 'https://hub.docker.com/r/atakanozban/songs2vid',
|
|
},
|
|
{
|
|
label: 'Gitea',
|
|
href: 'https://git.atakanozban.com/Songs2VID',
|
|
},
|
|
{
|
|
label: 'Service Status',
|
|
href: 'https://status.atakanozban.com/status/2',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Legal',
|
|
items: [
|
|
{
|
|
label: 'Privacy Policy',
|
|
href: 'https://www.songs2vid.com/privacy',
|
|
},
|
|
{
|
|
label: 'Terms of Service',
|
|
href: 'https://www.songs2vid.com/terms',
|
|
},
|
|
{
|
|
label: 'Refund Policy',
|
|
href: 'https://www.songs2vid.com/refund',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Songs2VID. Built with <a href="https://docusaurus.io/" target="_blank" rel="noopener noreferrer">Docusaurus</a>.`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
additionalLanguages: ['bash', 'json'],
|
|
},
|
|
} satisfies Preset.ThemeConfig,
|
|
};
|
|
|
|
export default config;
|