Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 38 additions & 38 deletions doc/docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand All @@ -18,7 +18,7 @@ const config = {

i18n: {
defaultLocale: 'en',
locales: ['en'],
locales: ['en']
},

presets: [
Expand All @@ -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:
Expand All @@ -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',
Expand All @@ -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
22 changes: 11 additions & 11 deletions doc/sidebars.js
Original file line number Diff line number Diff line change
@@ -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.
*/
Expand All @@ -18,10 +18,10 @@ const sidebars = {
collapsible: true,
collapsed: false,
items: [
'getting-started/quick-start',
],
'getting-started/quick-start'
]
},

// Guides section
{
type: 'category',
Expand All @@ -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
Loading