diff --git a/doc/babel.config.js b/doc/babel.config.js index e00595d..14e5baf 100644 --- a/doc/babel.config.js +++ b/doc/babel.config.js @@ -1,3 +1,3 @@ module.exports = { - presets: [require.resolve('@docusaurus/core/lib/babel/preset')], -}; + presets: [require.resolve('@docusaurus/core/lib/babel/preset')] +} diff --git a/doc/docusaurus.config.js b/doc/docusaurus.config.js index 6ef4afc..77cefc3 100644 --- a/doc/docusaurus.config.js +++ b/doc/docusaurus.config.js @@ -4,7 +4,7 @@ // There are various equivalent ways to declare your Docusaurus config. // See: https://docusaurus.io/docs/api/docusaurus-config -import {themes as prismThemes} from 'prism-react-renderer'; +import { themes as prismThemes } from 'prism-react-renderer' /** @type {import('@docusaurus/types').Config} */ const config = { @@ -31,7 +31,7 @@ const config = { // may want to replace "en" with "zh-Hans". i18n: { defaultLocale: 'en', - locales: ['en'], + locales: ['en'] }, presets: [ @@ -44,13 +44,13 @@ const config = { // Please change this to your repo. // Remove this to remove the "edit this page" links. editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/' }, blog: { showReadingTime: true, feedOptions: { type: ['rss', 'atom'], - xslt: true, + xslt: true }, // Please change this to your repo. // Remove this to remove the "edit this page" links. @@ -59,13 +59,13 @@ const config = { // Useful options to enforce blogging best practices onInlineTags: 'warn', onInlineAuthors: 'warn', - onUntruncatedBlogPosts: 'warn', + onUntruncatedBlogPosts: 'warn' }, theme: { - customCss: './src/css/custom.css', - }, - }), - ], + customCss: './src/css/custom.css' + } + }) + ] ], themeConfig: @@ -84,15 +84,15 @@ const config = { type: 'docSidebar', sidebarId: 'docSidebar', position: 'left', - label: 'Docs', + label: 'Docs' }, - {to: '/blog', label: 'Blog', position: 'left'}, + { to: '/blog', label: 'Blog', position: 'left' }, { href: 'https://github.com/IntegerAlex/hasty-server.git', label: 'GitHub', - position: 'right', - }, - ], + position: 'right' + } + ] }, footer: { style: 'dark', @@ -102,36 +102,36 @@ 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: 'Blog', - to: '/blog', - }, - ], - }, + to: '/blog' + } + ] + } ], - copyright: `Copyright © ${new Date().getFullYear()} Hasty Server. Built with Docusaurus.`, + copyright: `Copyright © ${new Date().getFullYear()} Hasty Server. Built with Docusaurus.` }, prism: { theme: prismThemes.github, - darkTheme: prismThemes.dracula, - }, - }), -}; + darkTheme: prismThemes.dracula + } + }) +} -export default config; +export default config diff --git a/doc/sidebars.js b/doc/sidebars.js index d3be2ec..8b95f77 100644 --- a/doc/sidebars.js +++ b/doc/sidebars.js @@ -14,7 +14,7 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { // By default, Docusaurus generates a sidebar from the docs folder structure - docSidebar: [{type: 'autogenerated', dirName: '.'}], + docSidebar: [{ type: 'autogenerated', dirName: '.' }] // But you can create a sidebar manually /* @@ -28,6 +28,6 @@ const sidebars = { }, ], */ -}; +} -export default sidebars; +export default sidebars diff --git a/doc/src/components/HomepageFeatures/index.js b/doc/src/components/HomepageFeatures/index.js index f7440b3..447f280 100644 --- a/doc/src/components/HomepageFeatures/index.js +++ b/doc/src/components/HomepageFeatures/index.js @@ -1,64 +1,64 @@ -import clsx from 'clsx'; -import Heading from '@theme/Heading'; -import styles from './styles.module.css'; +import clsx from 'clsx' +import Heading from '@theme/Heading' +import styles from './styles.module.css' const FeatureList = [ { title: 'High Performance', description: 'Hasty Server is designed for speed. It’s built using low-level networking APIs, ensuring minimal overhead and high concurrency. This makes it capable of handling thousands of requests per second with ease, perfect for high-traffic applications.', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default }, { title: 'Developer Friendly', description: 'It offers a simple and intuitive API, inspired by Express.js. Whether you’re a beginner or an experienced developer, the clear structure and easy-to-use syntax allow you to build applications faster and with fewer bugs.', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default }, { title: 'Built-in Security', description: 'Security is a top priority. Hasty Server includes built-in protections against common vulnerabilities such as XSS (Cross-Site Scripting), CSRF (Cross-Site Request Forgery), and SQL injection, helping you create secure applications without extra effort.', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default }, { title: 'Extensible Architecture', description: 'With its middleware-based architecture, Hasty Server allows you to add custom plugins and middlewares. You can extend its functionality by adding your own handlers or integrating third-party libraries with ease.', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default }, { title: 'Lightweight & Minimal', description: 'Despite its powerful features, Hasty Server remains lightweight and efficient. It minimizes resource consumption, making it ideal for resource-constrained environments such as microservices or serverless applications.', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default }, { title: 'Flexible Routing', description: 'Hasty Server provides a flexible routing system, allowing you to define routes for different HTTP methods (GET, POST, PUT, DELETE, etc.). You can also create dynamic routes with parameters for even more customization.', - Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default, - }, -]; + Svg: require('@site/static/img/undraw_docusaurus_mountain.svg').default + } +] -function Feature({Svg, title, description}) { +function Feature ({ Svg, title, description }) { return (
{description}
{siteConfig.tagline}
+{siteConfig.tagline}