149 lines
No EOL
3.4 KiB
TypeScript
149 lines
No EOL
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: 'Veza Platform - Documentation Officielle',
|
|
tagline: 'Plateforme musicale collaborative complète',
|
|
favicon: 'img/favicon.ico',
|
|
|
|
url: 'https://veza-docs.vercel.app',
|
|
baseUrl: '/',
|
|
|
|
organizationName: 'okinrev',
|
|
projectName: 'veza-full-stack',
|
|
|
|
onBrokenLinks: 'warn',
|
|
onBrokenMarkdownLinks: 'warn',
|
|
|
|
i18n: {
|
|
defaultLocale: 'fr',
|
|
locales: ['fr'],
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
{
|
|
docs: false, // Désactiver le preset docs par défaut
|
|
blog: false,
|
|
pages: {
|
|
path: 'src/pages',
|
|
},
|
|
theme: {
|
|
customCss: './src/css/custom.css',
|
|
},
|
|
} satisfies Preset.Options,
|
|
],
|
|
],
|
|
|
|
plugins: [
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
{
|
|
id: 'current',
|
|
path: 'current',
|
|
routeBasePath: 'current',
|
|
sidebarCollapsible: true,
|
|
showLastUpdateTime: true,
|
|
editUrl: 'https://github.com/okinrev/veza-full-stack/tree/main/veza-docs/',
|
|
},
|
|
],
|
|
[
|
|
'@docusaurus/plugin-content-docs',
|
|
{
|
|
id: 'vision',
|
|
path: 'vision',
|
|
routeBasePath: 'vision',
|
|
sidebarCollapsible: true,
|
|
showLastUpdateTime: true,
|
|
editUrl: 'https://github.com/okinrev/veza-full-stack/tree/main/veza-docs/',
|
|
},
|
|
],
|
|
],
|
|
|
|
themeConfig: {
|
|
image: 'img/veza-social-card.jpg',
|
|
navbar: {
|
|
title: 'Veza Platform',
|
|
logo: {
|
|
alt: 'Veza Platform Logo',
|
|
src: 'img/logo.svg',
|
|
},
|
|
items: [
|
|
{
|
|
to: '/current/overview',
|
|
label: 'État actuel',
|
|
position: 'left',
|
|
},
|
|
{
|
|
to: '/vision/overview',
|
|
label: 'État final visé',
|
|
position: 'left',
|
|
},
|
|
{
|
|
href: 'https://github.com/okinrev/veza-full-stack',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
links: [
|
|
{
|
|
title: 'Documentation',
|
|
items: [
|
|
{
|
|
label: 'Architecture',
|
|
to: '/docs/arch/current',
|
|
},
|
|
{
|
|
label: 'API Reference',
|
|
to: '/docs/api/api-overview',
|
|
},
|
|
{
|
|
label: 'Guides',
|
|
to: '/docs/guides/quick-start',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Community',
|
|
items: [
|
|
{
|
|
label: 'GitHub',
|
|
href: 'https://github.com/okinrev/veza-full-stack',
|
|
},
|
|
{
|
|
label: 'Discord',
|
|
href: 'https://discord.gg/veza',
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'More',
|
|
items: [
|
|
{
|
|
label: 'Blog',
|
|
to: '/blog',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
copyright: `Copyright © ${new Date().getFullYear()} Veza Platform. Built with Docusaurus.`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
additionalLanguages: ['bash', 'json', 'yaml', 'toml', 'rust', 'go'],
|
|
},
|
|
colorMode: {
|
|
defaultMode: 'light',
|
|
disableSwitch: false,
|
|
respectPrefersColorScheme: true,
|
|
},
|
|
} satisfies Preset.ThemeConfig,
|
|
};
|
|
|
|
export default config; |