Skip to content

Commit

Permalink
update landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 11, 2023
1 parent 9ccc8a7 commit cec77bf
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 69 deletions.
111 changes: 55 additions & 56 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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",
},
],
},
Expand Down
26 changes: 13 additions & 13 deletions src/components/HomepageFeatures/index.tsx
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -8,7 +8,7 @@ type FeatureItem = {

const FeatureList: FeatureItem[] = [
{
title: 'Parser',
title: "Parser",
description: (
<ul>
<li>2x faster than swc</li>
Expand All @@ -17,7 +17,7 @@ const FeatureList: FeatureItem[] = [
),
},
{
title: 'Linter',
title: "Linter",
description: (
<ul>
<li>50 - 100x faster than ESLint</li>
Expand All @@ -26,16 +26,16 @@ const FeatureList: FeatureItem[] = [
),
},
{
title: 'Resolver',
title: "Resolver",
description: (
<ul>
<li>x faster than enhanced-resolve</li>
<li>28 faster than enhanced-resolve</li>
<li>Feature complete</li>
</ul>
),
},
{
title: 'Transformer',
title: "Transformer",
description: (
<ul>
<li>Babel Compatible</li>
Expand All @@ -44,7 +44,7 @@ const FeatureList: FeatureItem[] = [
),
},
{
title: 'Minifier',
title: "Minifier",
description: (
<ul>
<li>Speed of ESBuild</li>
Expand All @@ -54,24 +54,24 @@ const FeatureList: FeatureItem[] = [
),
},
{
title: 'Formatter',
title: "Formatter",
description: (
<ul>
<li>Prettier-like</li>
<li>TBD</li>
<li>To be worked on</li>
</ul>
),
},
{
title: 'Ezno Type Checker',
title: "Ezno Type Checker",
description: (
<ul>
<li>A novel type checker with TypeScript syntax</li>
</ul>
),
},
{
title: 'Rspack Bundler',
title: "Rspack Bundler",
description: (
<ul>
<li>Rust port of Webpack</li>
Expand All @@ -80,7 +80,7 @@ const FeatureList: FeatureItem[] = [
),
},
{
title: 'Rolldown Bundler',
title: "Rolldown Bundler",
description: (
<ul>
<li>Rust port of Rollup</li>
Expand Down

0 comments on commit cec77bf

Please sign in to comment.