u
This commit is contained in:
1 parent
a1140b3e0a
commit
ad87788261
1229 files changed
+2284
-140085
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import {themes as prismThemes} from 'prism-react-renderer';
|
||||
import type {Config} from '@docusaurus/types';
|
||||
import type * as Preset from '@docusaurus/preset-classic';
|
||||
import type * as Preset from '@docusaurus/preset-classic'
|
||||
import type { Config } from '@docusaurus/types'
|
||||
import { themes as prismThemes } from 'prism-react-renderer'
|
||||
|
||||
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
|
||||
|
||||
const config: Config = {
|
||||
title: 'oneao',
|
||||
tagline: "技术 · 笔记 · 记录",
|
||||
tagline: '技术 · 笔记 · 记录',
|
||||
favicon: 'img/favicon.ico',
|
||||
|
||||
// Future flags, see https://docusaurus.io/docs/api/docusaurus-config#future
|
||||
@@ -32,9 +32,8 @@ const config: Config = {
|
||||
// may want to replace "en" with "zh-Hans".
|
||||
i18n: {
|
||||
defaultLocale: 'zh-Hans',
|
||||
locales: ['zh-Hans','en'],
|
||||
locales: ['zh-Hans', 'en'],
|
||||
},
|
||||
|
||||
presets: [
|
||||
[
|
||||
'classic',
|
||||
@@ -86,37 +85,62 @@ const config: Config = {
|
||||
type: 'docSidebar',
|
||||
sidebarId: 'tutorialSidebar',
|
||||
position: 'left',
|
||||
label: 'Tutorial',
|
||||
label: '文档',
|
||||
},
|
||||
{to: '/blog', label: 'Blog', position: 'left'},
|
||||
{
|
||||
{
|
||||
to: '/blog',
|
||||
label: '博客',
|
||||
position: 'left',
|
||||
},
|
||||
{
|
||||
type: 'localeDropdown',
|
||||
position: 'right',
|
||||
},
|
||||
{
|
||||
'aria-label': 'GitHub Repository',
|
||||
'className': 'navbar--github-link',
|
||||
'href': 'https://github.com/<repo>',
|
||||
'position': 'right',
|
||||
},
|
||||
{
|
||||
'aria-label': 'GitHub Repository',
|
||||
'className': 'navbar--github-link',
|
||||
'href': 'https://github.com/oneao',
|
||||
'position': 'right',
|
||||
'title': 'Github',
|
||||
},
|
||||
{
|
||||
'aria-label': 'Gitee Repository',
|
||||
'className': 'navbar--gitee-link',
|
||||
'href': 'https://gitee.com/oneao',
|
||||
'position': 'right',
|
||||
'title': 'Gitee',
|
||||
},
|
||||
{
|
||||
'aria-label': 'Email',
|
||||
'className': 'navbar--email-link',
|
||||
'href': 'mailto:hi_itao@163.com',
|
||||
'position': 'right',
|
||||
'title': 'Email',
|
||||
},
|
||||
],
|
||||
},
|
||||
prism: {
|
||||
theme: prismThemes.github,
|
||||
darkTheme: prismThemes.dracula,
|
||||
},
|
||||
docs:{
|
||||
sidebar:{
|
||||
docs: {
|
||||
sidebar: {
|
||||
hideable: true,
|
||||
autoCollapseCategories: false,
|
||||
}
|
||||
},
|
||||
},
|
||||
algolia:{
|
||||
algolia: {
|
||||
appId: 'RYGTTZG9CJ',
|
||||
apiKey: 'b64300feec6e0441a508d8560efc4a03',
|
||||
indexName: 'docusaurus_docs',
|
||||
}
|
||||
},
|
||||
} satisfies Preset.ThemeConfig,
|
||||
};
|
||||
}
|
||||
|
||||
export default config;
|
||||
export default config
|
||||
|
||||
/**
|
||||
*
|
||||
* <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12ZM16 12V13.5C16 14.8807 17.1193 16 18.5 16V16C19.8807 16 21 14.8807 21 13.5V12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21H16" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>
|
||||
*
|
||||
*/
|
||||
Reference in new issue
Block a user