Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Boshen committed Nov 15, 2023
1 parent e9beb08 commit 62b47a1
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 23 deletions.
68 changes: 48 additions & 20 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineConfig } from 'vitepress'
import { defineConfig } from 'vitepress';

export default defineConfig({
srcDir: 'docs',
Expand All @@ -7,9 +7,16 @@ export default defineConfig({
base: '/',
title: 'The JavaScript Oxidation Compiler',
titleTemplate: ':title | The JavaScript Oxidation Compiler',
description: 'A collection of high-performance JavaScript tools written in Rust',
description:
'A collection of high-performance JavaScript tools written in Rust',
head: [
['link', { rel: 'icon', href: 'https://raw.githubusercontent.com/oxc-project/oxc-assets/main/logo-round.png' }],
[
'link',
{
rel: 'icon',
href: 'https://raw.githubusercontent.com/oxc-project/oxc-assets/main/logo-round.png',
},
],
],
lastUpdated: true,
themeConfig: {
Expand All @@ -25,7 +32,11 @@ export default defineConfig({
{ text: 'Contribute', link: '/docs/contribute/intro' },
{ text: 'Learn', link: '/docs/learn/ecosystem' },
{ text: 'Blog', link: '/blog/2022-02-10-js-tooling-research' },
{ text: 'Playground', target: '_blank', link: 'https://oxc-project.github.io/oxc/playground/' },
{
text: 'Playground',
target: '_blank',
link: 'https://oxc-project.github.io/oxc/playground/',
},
],
socialLinks: [
{ icon: 'twitter', link: 'https://x.com/boshen_c' },
Expand Down Expand Up @@ -54,20 +65,25 @@ export default defineConfig({
items: [
{ text: 'Philosophy', link: '/docs/usage/philosophy' },
{ text: 'Benchmarks', link: '/docs/usage/benchmarks' },
]
}
],
},
],
'/docs/contribute/': [
{ text: 'Intro', link: '/docs/contribute/intro' },
{ text: 'Rules', link: '/docs/contribute/rules' },
{ text: 'Parser', link: '/docs/contribute/parser' },
{ text: 'Linter', link: '/docs/contribute/linter' },
{ text: 'Resolver', link: '/docs/contribute/resolver' },
{ text: 'Transformer', link: '/docs/contribute/transformer' },
{ text: 'Formatter', link: '/docs/contribute/formatter' },
{ text: 'Codegen', link: '/docs/contribute/codegen' },
{ text: 'Minifier', link: '/docs/contribute/minifier' },
{ text: 'Vscode', link: '/docs/contribute/vscode' },
{
items: [
{ text: 'Parser', link: '/docs/contribute/parser' },
{ text: 'Linter', link: '/docs/contribute/linter' },
{ text: 'Prettier', link: '/docs/contribute/prettier' },
{ text: 'Resolver', link: '/docs/contribute/resolver' },
{ text: 'Transformer', link: '/docs/contribute/transformer' },
{ text: 'Formatter', link: '/docs/contribute/formatter' },
{ text: 'Codegen', link: '/docs/contribute/codegen' },
{ text: 'Minifier', link: '/docs/contribute/minifier' },
{ text: 'VSCode', link: '/docs/contribute/vscode' },
],
},
{ text: 'Performance', link: '/docs/contribute/performance' },
{ text: 'Showcase', link: '/docs/contribute/showcase' },
],
Expand All @@ -81,7 +97,10 @@ export default defineConfig({
{ text: 'Parser', link: '/docs/learn/architecture/parser' },
{ text: 'Linter', link: '/docs/learn/architecture/linter' },
{ text: 'Resolver', link: '/docs/learn/architecture/resolver' },
{ text: 'Transformer', link: '/docs/learn/architecture/transformer' },
{
text: 'Transformer',
link: '/docs/learn/architecture/transformer',
},
{ text: 'Formatter', link: '/docs/learn/architecture/formatter' },
{ text: 'Minifier', link: '/docs/learn/architecture/minifier' },
],
Expand All @@ -97,11 +116,20 @@ export default defineConfig({
{ text: 'References', link: '/docs/learn/references' },
],
'/blog/': [
{ text: 'Oxlint General Availability', link: '/blog/2023-11-08-announcing-oxlint' },
{
text: 'Oxlint General Availability',
link: '/blog/2023-11-08-announcing-oxlint',
},
{ text: 'Announcing Oxc', link: '/blog/2023-11-07-announcing-oxc' },
{ text: 'A research on JavaScript linters', link: '/blog/2022-08-08-linter-research' },
{ text: 'High Performance JavaScript Toolchain', link: '/blog/2022-02-10-js-tooling-research' },
]
{
text: 'A research on JavaScript linters',
link: '/blog/2022-08-08-linter-research',
},
{
text: 'High Performance JavaScript Toolchain',
link: '/blog/2022-02-10-js-tooling-research',
},
],
},
},
})
});
6 changes: 6 additions & 0 deletions docs/docs/contribute/prettier.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: Prettier
outline: deep
---

# Prettier
6 changes: 4 additions & 2 deletions docs/docs/contribute/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ title: Rules
outline: deep
---

- We welcome any form of contributions
# Rules

- We welcome any form of contributions.
- APIs should be simple and well-documented.
- All performance issues (runtime and compilation speed) are considered as bugs in this project.
- Third-party dependencies should be minimal.
- Monitor code coverage for unused code. Aim for 99% code coverage.
- Embrace data-oriented design.
- We prefer smaller PRs to get things merged quickly. Try stacked PRs with https://graphite.dev if repo write permission is given to you.
- We prefer smaller PRs to get things merged quickly. Try stacked PRs with [graphite](https://graphite.dev) if repo write permission is given to you.

---

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"typescript": "~5.2.2"
},
"lint-staged": {
"*.{js,jsx,tsx,ts,css,md,json}": "prettier --write"
"*.{js,jsx,tsx,ts,css,md,json,mts}": "prettier --write"
},
"engines": {
"node": ">=18.0"
Expand Down

0 comments on commit 62b47a1

Please sign in to comment.