Skip to content

Commit

Permalink
add search, removed package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
tobylai-toby committed Sep 16, 2024
1 parent 473c916 commit a7095f6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14,739 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*

package-lock.json
15 changes: 12 additions & 3 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
// There are various equivalent ways to declare your Docusaurus config.
// See: https://docusaurus.io/docs/api/docusaurus-config

import {themes as prismThemes} from 'prism-react-renderer';
import { themes as prismThemes } from 'prism-react-renderer';

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Box3TRC',
tagline: '🔬 Box3TRC 「Technical Research Center」🔬 欢迎来到岛研所!',
favicon: 'https://one.trc.tobylai.fun/logo.png',
favicon: '/img/trclogo.png',

// Set the production url of your site here
url: 'https://trc.tobylai.fun',
Expand Down Expand Up @@ -78,7 +78,7 @@ const config = {
position: 'left',
label: '文档',
},
{to: '/blog', label: '博客', position: 'left'},
{ to: '/blog', label: '博客', position: 'left' },
{
href: 'https://github.com/Box3TRC/documentation',
label: 'GitHub',
Expand Down Expand Up @@ -132,6 +132,15 @@ const config = {
darkTheme: prismThemes.vsDark,
},
}),
themes:[
[
require.resolve("@easyops-cn/docusaurus-search-local"),
({
hashed: true,
language: ["en", "zh"],
}),
],
]
};

export default config;
Loading

0 comments on commit a7095f6

Please sign in to comment.