diff --git a/doc/docusaurus.config.js b/doc/docusaurus.config.js index f46f7d9..48336c0 100644 --- a/doc/docusaurus.config.js +++ b/doc/docusaurus.config.js @@ -1,5 +1,5 @@ // @ts-check -import { themes as prismThemes } from 'prism-react-renderer'; +import { themes as prismThemes } from 'prism-react-renderer' /** @type {import('@docusaurus/types').Config} */ const config = { @@ -18,7 +18,7 @@ const config = { i18n: { defaultLocale: 'en', - locales: ['en'], + locales: ['en'] }, presets: [ @@ -28,24 +28,24 @@ const config = { ({ docs: { sidebarPath: require.resolve('./sidebars.js'), - editUrl: 'https://github.com/IntegerAlex/hasty-server/tree/master/doc', + editUrl: 'https://github.com/IntegerAlex/hasty-server/tree/master/doc' }, blog: { showReadingTime: true, feedOptions: { type: ['rss', 'atom'], - xslt: true, + xslt: true }, editUrl: 'https://github.com/IntegerAlex/hasty-server.git', onInlineTags: 'warn', onInlineAuthors: 'warn', - onUntruncatedBlogPosts: 'warn', + onUntruncatedBlogPosts: 'warn' }, theme: { - customCss: require.resolve('./src/css/custom.css'), - }, - }), - ], + customCss: require.resolve('./src/css/custom.css') + } + }) + ] ], themeConfig: @@ -54,34 +54,34 @@ const config = { colorMode: { defaultMode: 'dark', disableSwitch: false, - respectPrefersColorScheme: true, + respectPrefersColorScheme: true }, announcementBar: { id: 'welcome', content: '🚀 Welcome to Hasty Server Docs! Explore and build amazing web servers.', backgroundColor: '#4f46e5', textColor: '#ffffff', - isCloseable: true, + isCloseable: true }, navbar: { title: 'Hasty Server', logo: { alt: 'Hasty Server Logo', - src: 'img/logo.svg', + src: 'img/logo.svg' }, items: [ { type: 'docSidebar', sidebarId: 'docsSidebar', position: 'left', - label: 'Docs', + label: 'Docs' }, { href: 'https://github.com/IntegerAlex/hasty-server', label: 'GitHub', - position: 'right', - }, - ], + position: 'right' + } + ] }, footer: { style: 'dark', @@ -91,56 +91,56 @@ const config = { items: [ { label: 'Docs', - to: '/docs/intro', - }, - ], + to: '/docs/intro' + } + ] }, { title: 'Community', items: [ { label: 'GitHub', - href: 'https://github.com/IntegerAlex/hasty-server.git', - }, - ], + href: 'https://github.com/IntegerAlex/hasty-server.git' + } + ] }, { title: 'More', items: [ { label: 'GitHub', - href: 'https://github.com/IntegerAlex/hasty-server', - }, - ], - }, + href: 'https://github.com/IntegerAlex/hasty-server' + } + ] + } ], - copyright: `Copyright © ${new Date().getFullYear()} Hasty Server.`, + copyright: `Copyright © ${new Date().getFullYear()} Hasty Server.` }, prism: { theme: { ...prismThemes.github, plain: { ...prismThemes.github.plain, - backgroundColor: '#f8fafc', - }, + backgroundColor: '#f8fafc' + } }, darkTheme: { ...prismThemes.dracula, plain: { ...prismThemes.dracula.plain, - backgroundColor: '#1e293b', - }, + backgroundColor: '#1e293b' + } }, - additionalLanguages: ['http', 'bash', 'json'], + additionalLanguages: ['http', 'bash', 'json'] }, docs: { sidebar: { hideable: true, - autoCollapseCategories: true, - }, + autoCollapseCategories: true + } }, - image: 'img/social-card.png', - }), -}; + image: 'img/social-card.png' + }) +} -export default config; +export default config diff --git a/doc/sidebars.js b/doc/sidebars.js index 3710118..711aa66 100644 --- a/doc/sidebars.js +++ b/doc/sidebars.js @@ -1,6 +1,6 @@ /** * Sidebar configuration for Hasty Server documentation - * + * * This file defines the navigation structure for the documentation site. * The sidebar is organized into logical sections for easy navigation. */ @@ -18,10 +18,10 @@ const sidebars = { collapsible: true, collapsed: false, items: [ - 'getting-started/quick-start', - ], + 'getting-started/quick-start' + ] }, - + // Guides section { type: 'category', @@ -33,13 +33,13 @@ const sidebars = { 'guides/static-files', 'guides/error-handling', - 'guides/limitations', - ], + 'guides/limitations' + ] }, - + // Additional standalone pages - 'index', - ], -}; + 'index' + ] +} -export default sidebars; +export default sidebars