分版测试

This commit is contained in:
postyizhan 2024-06-10 11:55:41 +08:00
parent 227e54787c
commit 0f5889adde
2 changed files with 25 additions and 0 deletions

6
demo/intro.md Normal file
View File

@ -0,0 +1,6 @@
---
title: 概览
sidebar_position: 1
---
测试

View File

@ -60,6 +60,19 @@ const config = {
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'demo',
path: 'demo',
routeBasePath: 'demo',
sidebarPath: require.resolve('./sidebars.js'),
// ... other options
},
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
@ -79,6 +92,12 @@ const config = {
position: 'left',
label: '开始',
},
{
to: '/demo/intro', // To highlight the navbar item, you must link to a document, not a top-level directory
position: 'left',
label: 'Demo',
activeBaseRegex: `/demo/`,
},
// 搜索框
{
type: 'search',