This commit is contained in:
oneao committed 2026-01-07 17:31:49 +08:00
1 parent 17e07df91a
commit 3ef263f5cc
47 files changed
+1169 -1041

No files matched your search

+6 -26
View File
@@ -1,33 +1,13 @@
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
// This runs in Node.js - Don't use client-side code here (browser APIs, JSX...)
/**
* Creating a sidebar enables you to:
- create an ordered group of docs
- render a sidebar for each doc of that group
- provide next/previous navigation
The sidebars can be generated from the filesystem, or explicitly defined here.
Create as many sidebars as you want.
*/
const sidebars: SidebarsConfig = {
// By default, Docusaurus generates a sidebar from the docs folder structure
tutorialSidebar: [{ type: "autogenerated", dirName: "." }],
// coding
JavaSidebar: [{ type: "autogenerated", dirName: "coding/java" }],
ReactNativeSidebar: [{ type: "autogenerated", dirName: "coding/react-native" }],
// But you can create a sidebar manually
/*
tutorialSidebar: [
'intro',
'hello',
{
type: 'category',
label: 'Tutorial',
items: ['tutorial-basics/create-a-document'],
},
],
*/
// dev-tools
DocusaurusSidebar: [{ type: "autogenerated", dirName: "dev-tools/docusaurus" }],
GitSidebar: [{ type: "autogenerated", dirName: "dev-tools/git" }],
};
export default sidebars;