From 7f5c598d85193311373300e631fee37cfdb03f4a Mon Sep 17 00:00:00 2001 From: Anton Arnautov Date: Tue, 6 Feb 2024 20:13:08 +0100 Subject: [PATCH] Adjust structure through sidebars.json file --- docusaurus/docs/React/basics/_category_.json | 4 - .../docs/React/components/_category_.json | 4 - .../React/components/contexts/_category_.json | 4 - .../core-components/_category_.json | 4 - .../message-components/_category_.json | 4 - .../message-input-components/_category_.json | 4 - .../utility-components/_category_.json | 4 - .../guides/3rd-party-video/_category_.json | 4 - docusaurus/docs/React/guides/_category_.json | 4 - .../guides/customization/_category_.json | 5 - .../docs/React/guides/theming/_category_.json | 5 - .../guides/theming/actions/_category_.json | 4 - docusaurus/docs/React/hooks/_category_.json | 4 - .../docs/React/release-guides/_category_.json | 4 - .../docs/React/resources/_category_.json | 4 - .../React/troubleshooting/_category_.json | 4 - docusaurus/sidebars-react.json | 144 ++++++++++++++++++ 17 files changed, 144 insertions(+), 66 deletions(-) delete mode 100644 docusaurus/docs/React/basics/_category_.json delete mode 100644 docusaurus/docs/React/components/_category_.json delete mode 100644 docusaurus/docs/React/components/contexts/_category_.json delete mode 100644 docusaurus/docs/React/components/core-components/_category_.json delete mode 100644 docusaurus/docs/React/components/message-components/_category_.json delete mode 100644 docusaurus/docs/React/components/message-input-components/_category_.json delete mode 100644 docusaurus/docs/React/components/utility-components/_category_.json delete mode 100644 docusaurus/docs/React/guides/3rd-party-video/_category_.json delete mode 100644 docusaurus/docs/React/guides/_category_.json delete mode 100644 docusaurus/docs/React/guides/customization/_category_.json delete mode 100644 docusaurus/docs/React/guides/theming/_category_.json delete mode 100644 docusaurus/docs/React/guides/theming/actions/_category_.json delete mode 100644 docusaurus/docs/React/hooks/_category_.json delete mode 100644 docusaurus/docs/React/release-guides/_category_.json delete mode 100644 docusaurus/docs/React/resources/_category_.json delete mode 100644 docusaurus/docs/React/troubleshooting/_category_.json create mode 100644 docusaurus/sidebars-react.json diff --git a/docusaurus/docs/React/basics/_category_.json b/docusaurus/docs/React/basics/_category_.json deleted file mode 100644 index daec3e16a8..0000000000 --- a/docusaurus/docs/React/basics/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Basics", - "position": 1 -} diff --git a/docusaurus/docs/React/components/_category_.json b/docusaurus/docs/React/components/_category_.json deleted file mode 100644 index 52e6a48662..0000000000 --- a/docusaurus/docs/React/components/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Components", - "position": 4 -} diff --git a/docusaurus/docs/React/components/contexts/_category_.json b/docusaurus/docs/React/components/contexts/_category_.json deleted file mode 100644 index d122477f39..0000000000 --- a/docusaurus/docs/React/components/contexts/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "React Contexts", - "position": 5 -} diff --git a/docusaurus/docs/React/components/core-components/_category_.json b/docusaurus/docs/React/components/core-components/_category_.json deleted file mode 100644 index 44d0026d5f..0000000000 --- a/docusaurus/docs/React/components/core-components/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Core Components", - "position": 4 -} diff --git a/docusaurus/docs/React/components/message-components/_category_.json b/docusaurus/docs/React/components/message-components/_category_.json deleted file mode 100644 index dc6f180dae..0000000000 --- a/docusaurus/docs/React/components/message-components/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Message Components", - "position": 1 -} diff --git a/docusaurus/docs/React/components/message-input-components/_category_.json b/docusaurus/docs/React/components/message-input-components/_category_.json deleted file mode 100644 index 0b6b20c337..0000000000 --- a/docusaurus/docs/React/components/message-input-components/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Message Input Components", - "position": 2 -} diff --git a/docusaurus/docs/React/components/utility-components/_category_.json b/docusaurus/docs/React/components/utility-components/_category_.json deleted file mode 100644 index b68de13a25..0000000000 --- a/docusaurus/docs/React/components/utility-components/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Utility Components", - "position": 3 -} diff --git a/docusaurus/docs/React/guides/3rd-party-video/_category_.json b/docusaurus/docs/React/guides/3rd-party-video/_category_.json deleted file mode 100644 index 0d65be0f9c..0000000000 --- a/docusaurus/docs/React/guides/3rd-party-video/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Integrating 3rd Party Video", - "position": 25 -} diff --git a/docusaurus/docs/React/guides/_category_.json b/docusaurus/docs/React/guides/_category_.json deleted file mode 100644 index c59a630d3b..0000000000 --- a/docusaurus/docs/React/guides/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Guides", - "position": 3 -} diff --git a/docusaurus/docs/React/guides/customization/_category_.json b/docusaurus/docs/React/guides/customization/_category_.json deleted file mode 100644 index aa5ba53fba..0000000000 --- a/docusaurus/docs/React/guides/customization/_category_.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "label": "Customizing Components", - "position": 2, - "collapsed": true -} diff --git a/docusaurus/docs/React/guides/theming/_category_.json b/docusaurus/docs/React/guides/theming/_category_.json deleted file mode 100644 index f1a954e58a..0000000000 --- a/docusaurus/docs/React/guides/theming/_category_.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "label": "Theming", - "position": 1, - "collapsed": true -} diff --git a/docusaurus/docs/React/guides/theming/actions/_category_.json b/docusaurus/docs/React/guides/theming/actions/_category_.json deleted file mode 100644 index 24f37a2614..0000000000 --- a/docusaurus/docs/React/guides/theming/actions/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Actions", - "position": 2 -} diff --git a/docusaurus/docs/React/hooks/_category_.json b/docusaurus/docs/React/hooks/_category_.json deleted file mode 100644 index 4f4b472dc1..0000000000 --- a/docusaurus/docs/React/hooks/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Custom Hooks", - "position": 5 -} diff --git a/docusaurus/docs/React/release-guides/_category_.json b/docusaurus/docs/React/release-guides/_category_.json deleted file mode 100644 index 6d491cf2a1..0000000000 --- a/docusaurus/docs/React/release-guides/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Release guides", - "position": 6 -} diff --git a/docusaurus/docs/React/resources/_category_.json b/docusaurus/docs/React/resources/_category_.json deleted file mode 100644 index b7be31ee6e..0000000000 --- a/docusaurus/docs/React/resources/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Resources", - "position": 8 -} diff --git a/docusaurus/docs/React/troubleshooting/_category_.json b/docusaurus/docs/React/troubleshooting/_category_.json deleted file mode 100644 index c1e1ed732c..0000000000 --- a/docusaurus/docs/React/troubleshooting/_category_.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "label": "Troubleshooting", - "position": 7 -} diff --git a/docusaurus/sidebars-react.json b/docusaurus/sidebars-react.json new file mode 100644 index 0000000000..a6a2743db4 --- /dev/null +++ b/docusaurus/sidebars-react.json @@ -0,0 +1,144 @@ +{ + "docs": [ + { "Basics": ["basics/getting_started", "basics/installation"] }, + { + "UI Components": [ + { + "Channel List": [ + "components/core-components/channel_list", + "components/utility-components/channel_preview_ui", + "components/utility-components/channel_preview", + "components/utility-components/channel_search" + ] + }, + { + "Message Input": [ + "components/message-input-components/input_ui", + "components/message-input-components/ui_components", + "components/message-input-components/message_input" + ] + }, + { + "Message List": [ + "components/core-components/message_list", + "components/core-components/virtualized_list" + ] + }, + { + "Message": [ + "components/utility-components/date_separator", + "components/message-components/ui-components", + "components/message-components/message_ui", + "components/message-components/message" + ] + }, + "components/message-components/attachment", + "components/utility-components/avatar", + "components/utility-components/base-image", + "components/utility-components/channel_header", + "components/core-components/channel", + "components/core-components/chat", + "components/utility-components/indicators", + "components/message-components/reactions", + "components/core-components/thread", + "components/utility-components/window" + ] + }, + { + "Contexts": [ + "components/contexts/channel_action_context", + "components/contexts/channel_list_context", + "components/contexts/channel_state_context", + "components/contexts/chat_context", + "components/contexts/component_context", + "components/contexts/emoji_context", + "components/contexts/message_context", + "components/contexts/message_input_context", + "components/contexts/message_list_context", + "components/contexts/translation_context", + "components/contexts/typing_context" + ] + }, + { + "Hooks": ["hooks/channel_list_hooks", "hooks/message_hooks", "hooks/message_input_hooks"] + }, + { + "UI Cookbook": [ + { + "Attachment": [ + "guides/theming/actions/attachment_actions", + "guides/customization/image_gallery", + "guides/theming/actions/geolocation_attachment", + "guides/customization/giphy_preview" + ] + }, + { + "Channel List": [ + "guides/channel-list-infinite-scroll", + "guides/customization/channel_list_preview", + "guides/customization/channel_search", + "guides/channel-user-lists", + "guides/multiple_channel_lists" + ] + }, + { + "Emojis": ["guides/customization/emoji_picker"] + }, + { + "Message Input": [ + "guides/theming/input_ui", + "guides/customization/link-previews", + "guides/customization/override_submit_handler", + "guides/customization/persist_input_text_in_localstorage", + "guides/customization/suggestion_list", + "guides/customization/typing_indicator" + ] + }, + { + "Message List": ["guides/theming/connection_status"] + }, + { + "Message": [ + "guides/theming/actions/mentions_actions", + "guides/theming/actions/message_actions", + "guides/theming/message_ui", + "guides/customization/pin_indicator", + "guides/customization/system_message" + ] + }, + { + "Misc": ["guides/customization/channel_header", "guides/customization/thread_header"] + }, + { + "Notification": ["guides/customization/adding_messagelist_notification"] + }, + { "Reactions": ["guides/theming/reactions"] } + ] + }, + { + "Guides": [ + "guides/livestream-setup", + "guides/theming/translations", + "guides/typescript_and_generics", + "guides/channel_read_state" + ] + }, + { + "Theming": [ + "guides/theming/theming-overview", + { "V1": ["guides/theming/css_and_theming"] }, + { + "V2": [ + "theming/themingv2", + "theming/palette-variables", + "theming/component-variables", + "theming/global-variables" + ] + } + ] + }, + { "Release Guides": ["release-guides/upgrade-to-v10", "release-guides/upgrade-to-v11"] }, + "troubleshooting/troubleshooting", + "resources/resources" + ] +}