mirror of
https://github.com/orbien-org/orbien.git
synced 2026-09-22 16:01:32 +00:00
104 lines
2.2 KiB
TypeScript
104 lines
2.2 KiB
TypeScript
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: 'Orbien',
|
|
tagline: '轻量、高性能、安全的内网穿透工具',
|
|
favicon: 'img/favicon.ico',
|
|
|
|
future: {
|
|
v4: true,
|
|
},
|
|
|
|
url: 'https://orbien-org.github.io',
|
|
baseUrl: process.env.NODE_ENV === 'development' ? '/' : '/orbien/',
|
|
|
|
organizationName: 'orbien-org',
|
|
projectName: 'orbien',
|
|
deploymentBranch: 'gh-pages',
|
|
trailingSlash: false,
|
|
|
|
onBrokenLinks: 'throw',
|
|
|
|
markdown: {
|
|
hooks: {
|
|
onBrokenMarkdownLinks: 'throw',
|
|
},
|
|
},
|
|
|
|
i18n: {
|
|
defaultLocale: 'zh-Hans',
|
|
locales: ['zh-Hans', 'en'],
|
|
localeConfigs: {
|
|
'zh-Hans': {
|
|
label: '中文',
|
|
htmlLang: 'zh-CN',
|
|
},
|
|
en: {
|
|
label: 'English',
|
|
htmlLang: 'en',
|
|
},
|
|
},
|
|
},
|
|
|
|
presets: [
|
|
[
|
|
'classic',
|
|
{
|
|
docs: {
|
|
sidebarPath: './sidebars.ts',
|
|
editUrl: 'https://github.com/orbien-org/orbien/tree/main/docs/',
|
|
},
|
|
blog: false,
|
|
theme: {
|
|
customCss: './src/css/custom.css',
|
|
},
|
|
} satisfies Preset.Options,
|
|
],
|
|
],
|
|
|
|
themeConfig: {
|
|
image: 'img/logo.png',
|
|
colorMode: {
|
|
defaultMode: 'light',
|
|
respectPrefersColorScheme: true,
|
|
},
|
|
navbar: {
|
|
title: 'Orbien',
|
|
logo: {
|
|
alt: 'Orbien',
|
|
src: 'img/logo.png',
|
|
},
|
|
items: [
|
|
{
|
|
type: 'docSidebar',
|
|
sidebarId: 'docsSidebar',
|
|
position: 'left',
|
|
label: '文档',
|
|
},
|
|
{
|
|
type: 'localeDropdown',
|
|
position: 'right',
|
|
},
|
|
{
|
|
href: 'https://github.com/orbien-org/orbien',
|
|
label: 'GitHub',
|
|
position: 'right',
|
|
},
|
|
],
|
|
},
|
|
footer: {
|
|
style: 'dark',
|
|
copyright: `Copyright © ${new Date().getFullYear()} Orbien. Apache-2.0.`,
|
|
},
|
|
prism: {
|
|
theme: prismThemes.github,
|
|
darkTheme: prismThemes.dracula,
|
|
additionalLanguages: ['toml', 'bash', 'json'],
|
|
},
|
|
} satisfies Preset.ThemeConfig,
|
|
};
|
|
|
|
export default config;
|