diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 968035988a..59ef55e394 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -1,79 +1,78 @@ -import { themes as prismThemes } from 'prism-react-renderer'; -import type { Config } from '@docusaurus/types'; -import type * as Preset from '@docusaurus/preset-classic'; +import { themes as prismThemes } from "prism-react-renderer"; +import type { Config } from "@docusaurus/types"; +import type * as Preset from "@docusaurus/preset-classic"; const config: Config = { - title: 'The JavaScript Oxidation Compiler', - tagline: - 'A collection of high-performance JavaScript tooling written in Rust', + title: "The JavaScript Oxidation Compiler", + tagline: "A collection of high-performance JavaScript tools written in Rust", favicon: - 'https://raw.githubusercontent.com/oxc-project/oxc-assets/main/logo-round.png', - url: 'https://oxc-project.github.io', - baseUrl: '/', - organizationName: 'oxc-project', - projectName: 'oxc-project.github.io', - onBrokenLinks: 'throw', - onBrokenMarkdownLinks: 'throw', + "https://raw.githubusercontent.com/oxc-project/oxc-assets/main/logo-round.png", + url: "https://oxc-project.github.io", + baseUrl: "/", + organizationName: "oxc-project", + projectName: "oxc-project.github.io", + onBrokenLinks: "throw", + onBrokenMarkdownLinks: "throw", // i18n: { // defaultLocale: 'en', // locales: ['en', 'ja', 'zh-CN'], // }, presets: [ [ - 'classic', + "classic", { docs: { - sidebarPath: './sidebars.ts', + sidebarPath: "./sidebars.ts", editUrl: - 'https://github.com/oxc-project/oxc-project.github.io/tree/main', + "https://github.com/oxc-project/oxc-project.github.io/tree/main", }, blog: { - path: 'blog', + path: "blog", showReadingTime: true, editUrl: - 'https://github.com/oxc-project/oxc-project.github.io/tree/main', + "https://github.com/oxc-project/oxc-project.github.io/tree/main", }, theme: { - customCss: './src/css/custom.css', + customCss: "./src/css/custom.css", }, } satisfies Preset.Options, ], ], - themes: ['@vegaprotocol/docusaurus-theme-github-codeblock'], + themes: ["@vegaprotocol/docusaurus-theme-github-codeblock"], themeConfig: { image: - 'https://raw.githubusercontent.com/oxc-project/oxc-assets/main/preview-dark-transparent.png', + "https://raw.githubusercontent.com/oxc-project/oxc-assets/main/preview-dark-transparent.png", navbar: { - title: 'Oxc', + title: "Oxc", logo: { - alt: 'Oxc Logo', - src: 'https://raw.githubusercontent.com/oxc-project/oxc-assets/main/logo-round.png', + alt: "Oxc Logo", + src: "https://raw.githubusercontent.com/oxc-project/oxc-assets/main/logo-round.png", }, items: [ { - type: 'docSidebar', - position: 'left', - sidebarId: 'usage', - label: 'Getting Started', + type: "docSidebar", + position: "left", + sidebarId: "usage", + label: "Getting Started", }, { - type: 'docSidebar', - position: 'left', - sidebarId: 'contribute', - label: 'Contribute', + type: "docSidebar", + position: "left", + sidebarId: "contribute", + label: "Contribute", }, { - type: 'docSidebar', - position: 'left', - sidebarId: 'learn', - label: 'Learn', + type: "docSidebar", + position: "left", + sidebarId: "learn", + label: "Learn", }, - { to: 'blog', label: 'Blog', position: 'left' }, + { to: "blog", label: "Blog", position: "left" }, { - position: 'right', - label: 'Playground', - href: 'https://oxc-project.github.io/oxc/playground', - target: '_blank', + position: "right", + label: "Playground", + href: "https://oxc-project.github.io/oxc/playground", + target: "_blank", }, // { // type: 'localeDropdown', @@ -90,25 +89,25 @@ const config: Config = { // ], // }, { - position: 'right', - href: 'https://x.com/boshen_c', - className: 'header-icon header-twitter-link', - 'aria-label': 'Twitter', - target: '_blank', + position: "right", + href: "https://x.com/boshen_c", + className: "header-icon header-twitter-link", + "aria-label": "Twitter", + target: "_blank", }, { - position: 'right', - href: 'https://discord.gg/9uXCAwqQZW', - className: 'header-icon header-discord-link', - 'aria-label': 'Discord', - target: '_blank', + position: "right", + href: "https://discord.gg/9uXCAwqQZW", + className: "header-icon header-discord-link", + "aria-label": "Discord", + target: "_blank", }, { - position: 'right', - href: 'https://github.com/oxc-project/oxc', - className: 'header-icon header-github-link', - 'aria-label': 'GitHub repository', - target: '_blank', + position: "right", + href: "https://github.com/oxc-project/oxc", + className: "header-icon header-github-link", + "aria-label": "GitHub repository", + target: "_blank", }, ], }, diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index f21a78e91a..b7449d9410 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -1,5 +1,5 @@ -import Heading from '@theme/Heading'; -import styles from './styles.module.css'; +import Heading from "@theme/Heading"; +import styles from "./styles.module.css"; type FeatureItem = { title: string; @@ -8,7 +8,7 @@ type FeatureItem = { const FeatureList: FeatureItem[] = [ { - title: 'Parser', + title: "Parser", description: (