-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.ts
More file actions
34 lines (33 loc) · 1.63 KB
/
Copy pathdocusaurus.config.ts
File metadata and controls
34 lines (33 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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:'Cyan',
tagline:'GSoC 2026 / Security Research / Open Source',
favicon:'img/favicon.ico',
url:'https://eve0805.github.io',
baseUrl:'/cyan.github.io/',
organizationName:'eve0805',
projectName:'cyan.github.io',
deploymentBranch:'gh-pages',
onBrokenLinks:'throw',
markdown:{hooks:{onBrokenMarkdownLinks:'warn'}},
i18n:{defaultLocale:'zh-Hans',locales:['zh-Hans','en']},
presets:[['classic',{docs:{path:'notes',routeBasePath:'notes',sidebarPath:'./sidebars.ts'},blog:false,theme:{customCss:'./src/css/custom.css'}} satisfies Preset.Options]],
plugins:[['@docusaurus/plugin-content-docs',{id:'projects',path:'projects',routeBasePath:'gsoc/research',sidebarPath:'./sidebarsProjects.ts'}]],
themeConfig:{
image:'img/docusaurus-social-card.jpg',
colorMode:{defaultMode:'dark',respectPrefersColorScheme:true},
navbar:{title:'CYAN',items:[
{to:'/',label:'首页',position:'left'},
{to:'/gsoc',label:'GSoC 2026',position:'left'},
{to:'/contributions',label:'开源贡献',position:'left'},
{to:'/vulnerabilities',label:'漏洞记录',position:'left'},
{type:'localeDropdown',position:'right'},
{href:'https://github.com/eve0805',label:'GitHub',position:'right'},
]},
footer:{style:'dark',links:[],copyright:`Copyright ${new Date().getFullYear()} Cyan / Built in the open`},
prism:{theme:prismThemes.github,darkTheme:prismThemes.dracula},
} satisfies Preset.ThemeConfig,
};
export default config;