update config

This commit is contained in:
Félix Piédallu 2025-04-05 19:20:37 +02:00
parent caa5566797
commit 28729da058

View file

@ -7,7 +7,7 @@ import type * as Preset from '@docusaurus/preset-classic';
const config: Config = { const config: Config = {
title: 'Semalibre', title: 'Semalibre',
tagline: 'Why not embed ?', tagline: 'Why not embed ?',
favicon: 'img/favicon.ico', favicon: 'img/favicon.png',
url: 'https://semalibre.com', url: 'https://semalibre.com',
baseUrl: '/', baseUrl: '/',
@ -17,6 +17,10 @@ const config: Config = {
onBrokenAnchors: 'throw', onBrokenAnchors: 'throw',
onDuplicateRoutes: 'throw', onDuplicateRoutes: 'throw',
future: {
experimental_faster: true,
},
i18n: { i18n: {
defaultLocale: 'en', defaultLocale: 'en',
locales: [ locales: [
@ -54,7 +58,15 @@ const config: Config = {
themeConfig: { themeConfig: {
// Replace with your project's social card // Replace with your project's social card
image: 'img/docusaurus-social-card.jpg', image: 'img/docusaurus-social-card.jpg', // TODO:
colorMode: {
respectPrefersColorScheme: true,
},
announcementBar: {
id: 'beta-docusaurus',
content: '🛠️ This site is in beta, please report any issues!',
backgroundColor: 'darkOrange'
},
navbar: { navbar: {
title: 'Semalibre', title: 'Semalibre',
logo: { logo: {
@ -70,8 +82,8 @@ const config: Config = {
}, },
{to: '/blog', label: 'Blog', position: 'left'}, {to: '/blog', label: 'Blog', position: 'left'},
{ {
href: 'https://github.com/facebook/docusaurus', href: 'https://git.semalibre.com/semalibre/vitrine',
label: 'GitHub', label: 'Source',
position: 'right', position: 'right',
}, },
], ],
@ -80,50 +92,51 @@ const config: Config = {
style: 'dark', style: 'dark',
links: [ links: [
{ {
title: 'Docs', title: 'Contact',
items: [ items: [
{ {
label: 'Tutorial', label: 'Email',
to: '/docs/intro', href: 'mailto:contact@semalibre.com',
}, },
], ],
}, },
{ {
title: 'Community', title: 'Infos',
items: [ items: [
{ {
label: 'Stack Overflow', label: 'Git - Forgejo',
href: 'https://stackoverflow.com/questions/tagged/docusaurus', href: 'https://git.semalibre.com/Semalibre',
}, },
{ {
label: 'Discord', label: 'Mentions légales',
href: 'https://discordapp.com/invite/docusaurus', href: '/mentions-legales',
}, },
{ {
label: 'X', label: 'Pappers',
href: 'https://x.com/docusaurus', href: 'https://www.pappers.fr/entreprise/syslinbit-897717005',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: '/blog',
},
{
label: 'GitHub',
href: 'https://github.com/facebook/docusaurus',
}, },
], ],
}, },
], ],
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, copyright: `Copyleft ${new Date().getFullYear()} Syslinbit. Built with Docusaurus.`,
}, },
prism: { prism: {
theme: prismThemes.github, theme: prismThemes.github,
darkTheme: prismThemes.dracula, darkTheme: prismThemes.dracula,
additionalLanguages: [
'bash',
'c',
'css',
'markup-templating',
'django',
'lua',
'nginx',
'php',
'ruby',
'shell-session',
'toml',
'yaml'
],
}, },
} satisfies Preset.ThemeConfig, } satisfies Preset.ThemeConfig,
}; };