Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
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
71 changes: 66 additions & 5 deletions .vitepress/config/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { readFileSync } from "node:fs";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { defineConfig, HeadConfig } from "vitepress";
import { groupIconMdPlugin, groupIconVitePlugin } from "vitepress-plugin-group-icons";
import {
groupIconMdPlugin,
groupIconVitePlugin,
localIconLoader,
} from "vitepress-plugin-group-icons";

function inlineScript(file: string): HeadConfig {
return ["script", {}, readFileSync(resolve(__dirname, `./inlined-scripts/${file}`), "utf-8")];
Expand All @@ -13,7 +17,8 @@ const head: HeadConfig[] = [
"link",
{
rel: "icon",
href: "https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/square.ico",
type: "image/svg+xml",
href: "/logo-without-border.svg",
},
],
// Open Graph
Expand Down Expand Up @@ -108,6 +113,13 @@ export const sharedConfig = defineConfig({
pageData.frontmatter.head.push(["meta", { property: "og:url", content: url }]);
},
themeConfig: {
variant: "oxc",

banner: {
text: "Announcing Type-Aware Linting Alpha",
url: "https://oxc.rs/blog/2025-12-08-type-aware-alpha",
},

siteTitle: "Oxc",
logo: "https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/round.svg",
search: {
Expand All @@ -116,6 +128,7 @@ export const sharedConfig = defineConfig({
socialLinks: [
{ icon: "bluesky", link: "https://bsky.app/profile/boshen.github.io" },
{ icon: "discord", link: "https://discord.gg/9uXCAwqQZW" },
{ icon: "x", link: "https://x.com/OxcProject" },
{ icon: "github", link: "https://github.com/oxc-project/oxc" },
],
lastUpdated: {
Expand All @@ -124,8 +137,40 @@ export const sharedConfig = defineConfig({
},
},
footer: {
message: `Released under the MIT License.`,
copyright: "Copyright © 2023-present VoidZero Inc.",
copyright: `© 2025 VoidZero Inc. and Oxc contributors.`,
nav: [
{
title: "Oxc",
items: [
{ text: "Guide", link: "/docs/guide/introduction" },
{ text: "Learn", link: "/docs/learn/parser_in_rust/intro" },
{ text: "Contribute", link: "/docs/contribute/introduction" },
{ text: "Playground", link: "https://playground.oxc.rs" },
{ text: "Sponsor", link: "/sponsor" },
],
},
{
title: "Resources",
items: [
{ text: "Blog", link: "/blog/2025-12-01-oxfmt-alpha" },
{ text: "Team", link: "/team" },
],
},
/*{
title: "Legal",
items: [
{ text: "Terms & Conditions", link: "https://voidzero.dev/terms" },
{ text: "Privacy Policy", link: "https://voidzero.dev/privacy" },
{ text: "Cookie Policy", link: "https://voidzero.dev/cookies" },
],
},*/
],
social: [
{ icon: "github", link: "https://github.com/oxc-project/oxc" },
{ icon: "discord", link: "https://discord.gg/9uXCAwqQZW" },
{ icon: "x", link: "https://x.com/OxcProject" },
{ icon: "bluesky", link: "https://bsky.app/profile/boshen.github.io" },
],
},
},
markdown: {
Expand All @@ -134,10 +179,26 @@ export const sharedConfig = defineConfig({
},
},
vite: {
publicDir: resolve(dirname(fileURLToPath(import.meta.url)), "../../public"),
optimizeDeps: {
exclude: ["@docsearch/css"],
},
server: {
fs: {
// Allow serving files from the linked theme package
allow: [resolve(__dirname, "..", "..", "..")],
},
watch: {
ignored: ["!**/node_modules/@voidzero-dev/**"],
},
},
ssr: {
noExternal: ["@voidzero-dev/vitepress-theme"],
},
plugins: [
groupIconVitePlugin({
customIcon: {
".oxlintrc": "https://cdn.jsdelivr.net/gh/oxc-project/oxc-assets/round.svg",
".oxlintrc": localIconLoader(import.meta.url, "../../public/logo-without-border.svg"),
},
}),
],
Expand Down
74 changes: 0 additions & 74 deletions .vitepress/theme/components/Alert.vue

This file was deleted.

37 changes: 0 additions & 37 deletions .vitepress/theme/components/AppBadgeList.vue

This file was deleted.

117 changes: 0 additions & 117 deletions .vitepress/theme/components/Banner.vue

This file was deleted.

Loading
Loading