Skip to content

Commit

Permalink
refactor: change sidebar to ts
Browse files Browse the repository at this point in the history
Signed-off-by: frank-zsy <[email protected]>
  • Loading branch information
frank-zsy committed Nov 10, 2024
1 parent 6d8cde2 commit c41546b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const config: Config = {
'classic',
({
docs: {
sidebarPath: './sidebars.js',
sidebarPath: './sidebars.ts',
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
Expand Down
24 changes: 0 additions & 24 deletions sidebars.js

This file was deleted.

12 changes: 12 additions & 0 deletions sidebars.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';

const sidebars: SidebarsConfig = {
userDocSidebar: [
'user_docs/intro',
],
developerDocSidebar: [
'dev_docs/intro',
],
};

export default sidebars;

0 comments on commit c41546b

Please sign in to comment.