Skip to content

Commit

Permalink
search
Browse files Browse the repository at this point in the history
  • Loading branch information
ZengXiaoPi committed Dec 10, 2023
1 parent aa6acc7 commit 732b70f
Show file tree
Hide file tree
Showing 4 changed files with 13,547 additions and 1,229 deletions.
106 changes: 53 additions & 53 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
@@ -1,53 +1,53 @@
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion

const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");

/** @type {import('@docusaurus/types').Config} */
const config = {
title: '简幻欢社区维基',
tagline: 'Not Offical',
url: 'https://sfe.zxpweb.link',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
title: "简幻欢社区维基",
tagline: "Not Offical",
url: "https://sfe.zxpweb.link",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'ZengXiaoPi', // Usually your GitHub org/user name.
projectName: 'Simpfun_Wiki', // Usually your repo name.
organizationName: "ZengXiaoPi", // Usually your GitHub org/user name.
projectName: "Simpfun_Wiki", // Usually your repo name.

// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'zh-Hans',
locales: ['zh-Hans'],
defaultLocale: "zh-Hans",
locales: ["zh-Hans"],
},

plugins: [require.resolve('docusaurus-lunr-search')],

presets: [
[
'classic',
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/ZengXiaoPi/Simpfun_Wiki/edit/main/',
editUrl: "https://github.com/ZengXiaoPi/Simpfun_Wiki/edit/main/",
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/ZengXiaoPi/Simpfun_Wiki/edit/main/',
editUrl: "https://github.com/ZengXiaoPi/Simpfun_Wiki/edit/main/",
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
Expand All @@ -57,73 +57,73 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Simpfun 维基',
title: "Simpfun 维基",
logo: {
alt: 'Simpfun',
src: 'img/Simpfun.png',
alt: "Simpfun",
src: "img/Simpfun.png",
},
items: [
{
type: 'doc',
docId: 'main',
position: 'left',
label: '主页',
type: "doc",
docId: "main",
position: "left",
label: "主页",
},
{
href: 'http://nt.simpdoc.top',
label: '逆天墙',
position: 'left'
},
href: "http://nt.simpdoc.top",
label: "逆天墙",
position: "left",
},
{
href: 'https://github.com/ZengXiaoPi/Simpfun_Wiki',
label: 'GitHub',
position: 'right',
href: "https://github.com/ZengXiaoPi/Simpfun_Wiki",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: 'dark',
style: "dark",
links: [
{
title: '文档',
title: "文档",
items: [
{
label: '进入维基',
to: '/docs/main',
label: "进入维基",
to: "/docs/main",
},
],
},
{
title: '友情链接',
title: "友情链接",
items: [
{
label: '简幻欢',
href: 'https://simpfun.cn',
label: "简幻欢",
href: "https://simpfun.cn",
},
{
label: '简幻云',
href: 'https://simpcloud.cn',
label: "简幻云",
href: "https://simpcloud.cn",
},
{
label: 'BiliBili',
href: 'https://space.bilibili.com/1493209225',
label: "BiliBili",
href: "https://space.bilibili.com/1493209225",
},
{
label: 'CloudFlare',
href: 'https://www.cloudflare.com',
{
label: "CloudFlare",
href: "https://www.cloudflare.com",
},
],
},
{
title: '别的东西',
title: "别的东西",
items: [
{
label: '逆天墙',
href: 'http://nt.simpdoc.top'
label: "逆天墙",
href: "http://nt.simpdoc.top",
},
{
label: 'GitHub',
href: 'https://github.com/ZengXiaoPi/Simpfun_Wiki',
label: "GitHub",
href: "https://github.com/ZengXiaoPi/Simpfun_Wiki",
},
],
},
Expand Down
Loading

0 comments on commit 732b70f

Please sign in to comment.