From 28729da058ddf2ae4c48bed0c963da1ba216444e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 5 Apr 2025 19:20:37 +0200 Subject: [PATCH] update config --- docusaurus.config.ts | 69 ++++++++++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 20b6a3a..440a982 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -7,7 +7,7 @@ import type * as Preset from '@docusaurus/preset-classic'; const config: Config = { title: 'Semalibre', tagline: 'Why not embed ?', - favicon: 'img/favicon.ico', + favicon: 'img/favicon.png', url: 'https://semalibre.com', baseUrl: '/', @@ -17,6 +17,10 @@ const config: Config = { onBrokenAnchors: 'throw', onDuplicateRoutes: 'throw', + future: { + experimental_faster: true, + }, + i18n: { defaultLocale: 'en', locales: [ @@ -54,7 +58,15 @@ const config: Config = { themeConfig: { // 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: { title: 'Semalibre', logo: { @@ -70,8 +82,8 @@ const config: Config = { }, {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', - label: 'GitHub', + href: 'https://git.semalibre.com/semalibre/vitrine', + label: 'Source', position: 'right', }, ], @@ -80,50 +92,51 @@ const config: Config = { style: 'dark', links: [ { - title: 'Docs', + title: 'Contact', items: [ { - label: 'Tutorial', - to: '/docs/intro', + label: 'Email', + href: 'mailto:contact@semalibre.com', }, ], }, { - title: 'Community', + title: 'Infos', items: [ { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', + label: 'Git - Forgejo', + href: 'https://git.semalibre.com/Semalibre', }, { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', + label: 'Mentions légales', + href: '/mentions-legales', }, { - label: 'X', - href: 'https://x.com/docusaurus', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: '/blog', - }, - { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', + label: 'Pappers', + href: 'https://www.pappers.fr/entreprise/syslinbit-897717005', }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + copyright: `Copyleft ${new Date().getFullYear()} Syslinbit. Built with Docusaurus.`, }, prism: { theme: prismThemes.github, darkTheme: prismThemes.dracula, + additionalLanguages: [ + 'bash', + 'c', + 'css', + 'markup-templating', + 'django', + 'lua', + 'nginx', + 'php', + 'ruby', + 'shell-session', + 'toml', + 'yaml' + ], }, } satisfies Preset.ThemeConfig, };