Skip to content

Commit

Permalink
Merge pull request #136 from 10play/open-example-menu-by-default
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySerfaty authored Jun 18, 2024
2 parents 3b1c363 + eba3d69 commit e12f597
Showing 1 changed file with 64 additions and 48 deletions.
112 changes: 64 additions & 48 deletions website/sidebars.ts
Original file line number Diff line number Diff line change
@@ -1,53 +1,69 @@
import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';

const sidebars: SidebarsConfig = {
tutorialSidebar: {
Introduction: ['intro', 'mainConcepts'],
Setup: ['setup/installation', 'setup/advancedSetup'],
API: [
'api/useEditorBridge',
'api/EditorBridge',
'api/BridgeState',
'api/Components',
'api/CustomKeyboardUtils',
'api/BridgeExtensions',
'api/useEditorContent',
],
Examples: [
'examples/basic',
'examples/customCss',
{
type: 'doc',
id: 'examples/fonts',
label: 'Formatting keyboard',
className: 'pro',
},
'examples/configureExtensions',
'examples/colorKeyboard',
'examples/navHeader',
{
type: 'doc',
id: 'examples/mentions',
label: 'Mentions',
className: 'pro',
},
'examples/customKeyboard',
'examples/darkTheme',
'examples/customTheme',
{
type: 'doc',
id: 'examples/realtimeCollab',
label: 'Realtime Collaboration',
className: 'pro',
},
{
type: 'doc',
id: 'examples/comments',
label: 'Comments',
className: 'pro',
},
],
},
tutorialSidebar: [
{
type: 'category',
label: 'Introduction',
items: ['intro', 'mainConcepts'],
},
{
type: 'category',
label: 'Setup',
items: ['setup/installation', 'setup/advancedSetup'],
},
{
type: 'category',
label: 'API',
items: [
'api/useEditorBridge',
'api/EditorBridge',
'api/BridgeState',
'api/Components',
'api/CustomKeyboardUtils',
'api/BridgeExtensions',
'api/useEditorContent',
],
},
{
type: 'category',
label: 'Examples',
collapsed: false, // Ensure the Examples category is open by default
items: [
'examples/basic',
'examples/customCss',
{
type: 'doc',
id: 'examples/fonts',
label: 'Formatting keyboard',
className: 'pro',
},
'examples/configureExtensions',
'examples/colorKeyboard',
'examples/navHeader',
{
type: 'doc',
id: 'examples/mentions',
label: 'Mentions',
className: 'pro',
},
'examples/customKeyboard',
'examples/darkTheme',
'examples/customTheme',
{
type: 'doc',
id: 'examples/realtimeCollab',
label: 'Realtime Collaboration',
className: 'pro',
},
{
type: 'doc',
id: 'examples/comments',
label: 'Comments',
className: 'pro',
},
],
},
],
};

export default sidebars;

0 comments on commit e12f597

Please sign in to comment.