diff --git a/docusaurus.config.js b/docusaurus.config.js index 29eae5c829f5..4880a3558817 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -233,78 +233,174 @@ const config = { label: 'Quick Links', to: '/Getting_Started', position: 'left', - className: 'navbar_dorp_items home_nav js_getting_started', + className: 'navbar_dorp_items js_getting_started', }, { - label: 'Explore with Topics', - to: '/Getting_Started', + label: 'Technology', + to: '/topicintroduction', position: 'left', - className: 'navbar_dorp_items home_nav js_explore_learn', + className: 'navbar_dorp_items js_explore_learn', }, - // wiki documents navigation { type: 'dropdown', - label: 'Getting Started', - to: '/Getting_Started', + label: 'FAQs', + to: '/knowledgebase', position: 'left', - className: 'navbar_dorp_items doc_nav', + className: 'navbar_dorp_items', items: [ { - label: 'Sensing and Connectivity', - to: 'Sensor_Network', + label: 'NVIDIA Jetson Series', + to: '/Jetson_FAQ', }, { - label: 'Edge Computing', - to: 'Edge_Computing', + label: 'Seeed Studio XIAO Series', + to: '/XIAO_FAQ', }, { - label: 'Cloud and Chain', - to: 'CloudnChain', + label: 'reComputer R1000 Series', + to: '/reComputer_R1000_FAQ', }, - ], - }, - { - type: 'dropdown', - label: 'Topics', - to: '/Getting_Started', - position: 'left', - className: 'navbar_dorp_items doc_nav', - items: [ { - label: 'TinyML', - to: '/tinyml_topic', + label: 'reTerminal', + to: '/reTerminal-new_FAQ', + }, + { + label: 'reRouter', + to: '/FAQs_For_openWrt', + }, + { + label: 'Odyssey', + to: '/ODYSSEY_FAQ', + }, + { + label: 'Wio Terminal', + to: '/wio_terminal_faq', + }, + // 添加分割线 + { + type: 'html', + value: '
', // 调整样式根据你的需求 + }, + // 添加新的菜单项 + { + label: 'Discord', + href: 'https://discord.com/invite/eWkprNDMU7', }, { - label: 'Home Assistant', - to: '/home_assistant_topic', + label: 'Email', + href: 'https://www.seeedstudio.com/contacts', }, { - label: 'Open Source', - to: '/open_source_topic', + label: 'Forum', + href: 'https://forum.seeedstudio.com/', }, { - label: 'Edge AI', - to: '/edge_ai_topic', + label: 'Have Suggestions?', + href: 'https://github.com/Seeed-Studio/wiki-documents/discussions/69', }, + ], }, { type: 'dropdown', - label: '文/A', - to: '/Getting_Started', + label: 'Rangers', + to: '/ranger', position: 'left', - className: 'navbar_dorp_items doc_nav', + className: 'navbar_dorp_items', items: [ { - label: 'Seeed Studio Wiki Platform', - to: '/Getting_Started', + label: 'Rangers', + to: '/ranger', }, { - label: '矽递科技 Wiki 文档平台(测试)', - to: '/cn/Getting_Started', + label: 'Contributors', + to: '/contributors', + }, + { + label: 'Apply for Rangers', + href: 'https://docs.google.com/forms/d/e/1FAIpQLSdiAWHmRJqgVNTJyJDkzhufc1dygFyhWFyEtUTm-mrgSKaEgg/viewform', + }, + { + label: 'Direct to Assignments', + href: 'https://github.com/orgs/Seeed-Studio/projects/6', + }, + { + label: 'More about Rangers', + href: 'https://www.seeedstudio.com/blog/2023/09/15/join-the-seeed-ranger-program-empowering-developers-and-building-communities/', + }, + { + label: 'More about Contributors', + href: 'https://wiki.seeedstudio.com/Contributor', }, ], }, + // wiki documents navigation + // { + // type: 'dropdown', + // label: 'Getting Started', + // to: '/Getting_Started', + // position: 'left', + // className: 'navbar_dorp_items doc_nav', + // items: [ + // { + // label: 'Sensing and Connectivity', + // to: 'Sensor_Network', + // }, + // { + // label: 'Edge Computing', + // to: 'Edge_Computing', + // }, + // { + // label: 'Cloud and Chain', + // to: 'CloudnChain', + // }, + // ], + // }, + // { + // type: 'dropdown', + // label: 'Topics', + // to: '/Getting_Started', + // position: 'left', + // className: 'navbar_dorp_items doc_nav', + // items: [ + // { + // label: 'TinyML', + // to: '/tinyml_topic', + // }, + // { + // label: 'Home Assistant', + // to: '/home_assistant_topic', + // }, + // { + // label: 'Open Source', + // to: '/open_source_topic', + // }, + // { + // label: 'Edge AI', + // to: '/edge_ai_topic', + // }, + // ], + // }, + // { + // type: 'dropdown', + // label: '文/A', + // to: '/Getting_Started', + // position: 'left', + // className: 'navbar_dorp_items doc_nav', + // items: [ + // { + // label: 'Seeed Studio Wiki Platform', + // to: '/Getting_Started', + // }, + // { + // label: '矽递科技 Wiki 文档平台(测试)', + // to: '/cn/Getting_Started', + // }, + // ], + // }, + + + // { // label: 'Contribution', @@ -331,40 +427,46 @@ const config = { // label: 'Solutions', // className: 'navbar_doc_items' // }, + { + to: 'https://wiki-gpt.seeedstudio.com/chat', + label: 'AI Bot 🤖️', + position: 'right', + className: 'navbar_doc_right_items', + }, + { + to: 'https://sensecraft.seeed.cc/ai/#/home', + label: 'SenseCraft AI', + position: 'right', + className: 'navbar_doc_right_items', + }, // { // to: 'https://wiki-gpt.seeedstudio.com/chat', - // label: 'Chat 🤖️', + // label: 'Rangers ✨', // position: 'right', // className: 'navbar_doc_right_items', // }, // { // to: 'https://wiki-gpt.seeedstudio.com/chat', - // label: 'Rangers ✨', + // label: 'Collaborations ✨', // position: 'right', // className: 'navbar_doc_right_items', // }, // { - // to: 'https://wiki-gpt.seeedstudio.com/chat', + // type: 'dropdown', // label: 'Collaborations ✨', + // to: '/Getting_Started', // position: 'right', - // className: 'navbar_doc_right_items', + // items: [ + // { + // label: 'Rangers', + // to: '/knowledgebase/', + // }, + // { + // label: 'Contributors', + // to: '/cn/Getting_Started', + // }, + // ], // }, - { - type: 'dropdown', - label: 'Collaborations ✨', - to: '/Getting_Started', - position: 'right', - items: [ - { - label: 'Rangers', - to: '/knowledgebase/', - }, - { - label: 'Contributors', - to: '/cn/Getting_Started', - }, - ], - }, { href: 'https://seeed-studio.github.io/SenseCraft-Web-Toolkit/#/setup/process', @@ -545,7 +647,8 @@ const config = { id: 'support_us', content: // 'We are looking forward to your contribution! Welcome to check our task lists!', - 'All planned updates to the wiki platform has been publicly availble. Your contributions will be essential to us!', + //'All planned updates to the wiki platform has been publicly availble. Your contributions will be essential to us!', + 'Collaborating with us! Join the Seeed Studio Ranger Program or Contributor Program!', backgroundColor: '#013949', textColor: '#FFFFFF', isCloseable: false, diff --git a/package-lock.json b/package-lock.json index 1ef43cd67949..252ab3c49b35 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6985,25 +6985,6 @@ "lodash.uniq": "^4.5.0" } }, - "node_modules/caniuse-lite": { - "version": "1.0.30001564", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001564.tgz", - "integrity": "sha512-DqAOf+rhof+6GVx1y+xzbFPeOumfQnhYzVnZD6LAXijR77yPtm9mfOcqOnT3mpnJiZVT+kwLAFnRlZcIz+c6bg==", - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, "node_modules/caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", @@ -31725,11 +31706,6 @@ "lodash.uniq": "^4.5.0" } }, - "caniuse-lite": { - "version": "1.0.30001564", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001564.tgz", - "integrity": "sha512-DqAOf+rhof+6GVx1y+xzbFPeOumfQnhYzVnZD6LAXijR77yPtm9mfOcqOnT3mpnJiZVT+kwLAFnRlZcIz+c6bg==" - }, "caseless": { "version": "0.12.0", "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", @@ -46494,4 +46470,4 @@ "integrity": "sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==" } } -} +} \ No newline at end of file diff --git a/package.json b/package.json index 2ed5494aeb1b..64c829b38f38 100644 --- a/package.json +++ b/package.json @@ -33,12 +33,12 @@ "docusaurus-plugin-sass": "^0.2.2", "hast-util-is-element": "1.1.0", "prism-react-renderer": "^1.3.5", - "react": "^17.0.2", - "react-dom": "^17.0.2", - "react-hook-form": "^7.49.2", - "react-icons": "^4.12.0", + "react": "^18.3.1", + "react-dom": "^18.3.1", + "react-hook-form": "^7.53.0", + "react-icons": "^5.3.0", "react-popper": "^2.3.0", - "react-toastify": "^9.1.3", + "react-toastify": "^10.0.5", "rehype-katex": "5", "remark-math": "3", "sass": "^1.63.3", @@ -67,4 +67,4 @@ "engines": { "node": ">=16.14" } -} \ No newline at end of file +} diff --git a/src/components/home/browseBy.tsx b/src/components/home/browseBy.tsx index f25ac17f9c4c..d92c1fcaa677 100644 --- a/src/components/home/browseBy.tsx +++ b/src/components/home/browseBy.tsx @@ -16,43 +16,43 @@ function IndexLatestedViki(props) { moreLink:'https://wiki.seeedstudio.com/Arduino/', docList: [ { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan Pinout", + "path": "/xiao_esp32s3_getting_started", + "image": "https://files.seeedstudio.com/wiki/SeeedStudio-XIAO-ESP32S3/img/61.gif", + "title": "Seeed Studio XIAO ESP32S3 (Sense)", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan is not turning on", + "path": "/XIAO_BLE", + "image": "https://files.seeedstudio.com/wiki/XIAO-BLE/102010469_Front-14.jpg", + "title": "Seeed Studio XIAO nRF52840 (Sense)", }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan Pinout", + "path": "/XIAO_ESP32C3_Getting_Started", + "image": "https://files.seeedstudio.com/wiki/xiao_topicpage/4.jpg", + "title": "Seeed Studio XIAO ESP32C3", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan is not turning on", + "path": "/xiao_esp32c6_getting_started", + "image": "https://files.seeedstudio.com/wiki/SeeedStudio-XIAO-ESP32C6/img/xiaoc6.jpg", + "title": "Seeed Studio XIAO ESP32C6", } , { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan Pinout", + "path": "/Grove-Beginner-Kit-For-Arduino", + "image": "https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/1/-/1-110061162-grove-beginner-kit-for-arduino-first.jpg", + "title": "Grove Beginner Kit For Arduino", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan is not turning on", + "path": "/Wio-Terminal-Getting-Started", + "image": "https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/0/0/0072.jpg", + "title": "Wio Terminal", }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan Pinout", + "path": "/Edgebox-ESP-100-Arduino", + "image": "https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/e/d/edgebox-esp100_1.jpg", + "title": "EdgeBox-ESP-100", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/BLE-PDM-TinyML/edge42.gif", - "title": "Fan is not turning on", + "path": "/Grove-LCD_RGB_Backlight", + "image": "https://files.seeedstudio.com/wiki/Grove_LCD_RGB_Backlight/img/seeeduino_rgb.jpg", + "title": "Grove - LCD RGB Backlight", } ] }, { @@ -61,43 +61,44 @@ function IndexLatestedViki(props) { moreLink:'https://wiki.seeedstudio.com/Raspberry_Pi/', docList: [ { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S-tempor.png", - "title": "Fan Pinout", + "path": "/reTerminal", + "image": "https://files.seeedstudio.com/wiki/ReTerminal/wiki_thumb.png", + "title": "Getting Started with reTerminal", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "path": "/recomputer_r1000_flash_OS", + "image": "https://files.seeedstudio.com/wiki/reComputer-R1000/recomputer_r_images/01.png", + "title": "reComputer R1000 Raspbian OS to eMMC", }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/Edge_Box_introduction", + "image": "https://media-cdn.seeedstudio.com/media/catalog/product/cache/bb49d3ec4ee05b6f018e93f896b8a25d/1/-/1-102991599_edgebox-rpi-200-first.jpg", + "title": "Getting Started Edge Box RPI-200", + }, + { + "path": "/reTerminal-hardware-interfaces-usage", + "image": "https://files.seeedstudio.com/wiki/ReTerminal/HW_overview.png", + "title": "Hardware and Interfaces Usage", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - } - , { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/raspberry_pi_5_uses_pcie_hat_dual_hat", + "image": "https://files.seeedstudio.com/wiki/M.2_Hat/new/11.jpg", + "title": "Raspberry Pi 5 uses PCIe hat/dual hat", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/Edgebox-rpi-200-codesys", + "image": "https://files.seeedstudio.com/wiki/Edge_Box/codesys/new_project.png", + "title": "Codesys for Edge Box RPi 200", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "path": "/tutorial_of_ai_kit_with_raspberrypi5_about_yolov8n_object_detection", + "image": "https://files.seeedstudio.com/wiki/reComputer-R1000/YOLOV8/resultvideo.gif", + "title": "AI Kit with Raspberry Pi 5 about YOLOv8n object detection", + }, + { + "path": "/reTerminal-DM_intro_FUXA", + "image": "https://files.seeedstudio.com/wiki/reTerminalDM/FUXA/demo-fuxa.gif", + "title": "Getting Start with FUXA - Web Based SCADA Tool", } ] } @@ -109,43 +110,44 @@ function IndexLatestedViki(props) { docList: [ { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/SeeedStudio-XIAO-ESP32S3/img/61.gif", - "title": "Fan Pinout", + "path": "/reComputer_J4012_Flash_Jetpack", + "image": "https://files.seeedstudio.com/wiki/reComputer-Jetson/J401/recomputer-j401.png", + "title": "Flash JetPack OS to J401 Carrier Board", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S-tempor.png", - "title": "Fan is not turning on", + "path": "/reComputer_Industrial_Getting_Started", + "image": "https://files.seeedstudio.com/wiki/reComputer-Industrial/2.png", + "title": "Getting Started with reComputer Industrial", }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/reComputer_Jetson_Series_Initiation", + "image": "https://files.seeedstudio.com/wiki/recomputerzhongwen/rekaiji1.jpg", + "title": "reComputer for Jetson Initiation", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - } - , { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/reServer_Industrial_Getting_Started", + "image": "https://files.seeedstudio.com/wiki/reServer-Industrial/1.png", + "title": "Getting Started with reServer Industrial", + }, + { + "path": "/deploy_frigate_on_jetson", + "image": "https://docs.frigate.video/assets/images/media_browser-min-1f8a7c629d1bdbee1c78f99a97a0219a.png", + "title": "Deploy Frigate On NVIDIA Jetson device", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/J101_Enable_SD_Card", + "image": "https://files.seeedstudio.com/wiki/Boot_NVIDIA_System_from_SD_card_for_Jetson101/fix01.png", + "title": "J101 Enable SD Card", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "path": "/J401_carrierboard_Hardware_Interfaces_Usage", + "image": "https://files.seeedstudio.com/wiki/reComputer-Jetson/A608/Jetson-connect-J401.gif", + "title": "J401 Carrier Board Interfaces Usage", + }, + { + "path": "/YOLOv8-DeepStream-TRT-Jetson", + "image": "https://files.seeedstudio.com/wiki/YOLOV8/car.gif", + "title": "YOLOv8 on Jetson with TensorRT and DeepStream", } ] }, { @@ -154,88 +156,89 @@ function IndexLatestedViki(props) { moreLink:'https://wiki.seeedstudio.com/home_assistant_topic/', docList: [ { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S-tempor.png", - "title": "Fan Pinout", + "path": "/home_assistant_sensecap", + "image": "https://files.seeedstudio.com/wiki/IMAGES/SenseCAP/M2_homeassistant/config_11.png", + "title": "SenseCAP Integration for Home Assistant", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "path": "/xiao-esp32c3-esphome", + "image": "https://files.seeedstudio.com/wiki/homs-xiaoc3-linkstar/78.jpg", + "title": "XIAO ESP32C3 accesses Home Assistant via ESPHome service", }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/ha_xiao_esp32", + "image": "https://files.seeedstudio.com/wiki/SenseCAP/Home_Assistant/ha-xiao5.png", + "title": "XIAO ESP32S3 for Home Assistant", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - } - , { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/sensecraft_homeassistant_userguide", + "image": "https://files.seeedstudio.com/wiki/sensecraft/sensecraft_homeassistant/SenseCraft-HomeAssistantimage49.png", + "title": "SenseCraft-HomeAssistant User Manual", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/SenseCAP_Indicator_Application_Matter", + "image": "https://files.seeedstudio.com/wiki/SenseCAP/SenseCAP_Indicator/indicator-matter-7.jpg", + "title": "SenseCAP Indicator - Matter Application Development", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", - } + "path": "/home_assistant_with_sensecap_lorawan_sensors", + "image": "https://hackster.imgix.net/uploads/attachments/1527151/_HMPRnIpF0p.blob?auto=compress%2Cformat&w=900&h=675&fit=min", + "title": "Tango with Home Assistant and SenseCAP Sensors", + }, + { + "path": "/Connect-Grove-to-Home-Assistant-ESPHome", + "image": "https://files.seeedstudio.com/wiki/ESPHome/106.png", + "title": "Connect Grove Modules to Home Assistant using ESPHome", + }, + { + "path": "/reterminal-DM-Frigate", + "image": "https://files.seeedstudio.com/wiki/reTerminalDM/HA/reterminalDM.gif", + "title": "Frigate intergrating with reTerminal DM", + }, ] }, { key: 'edgeAi', image: 'edgeAi', - moreLink:'', + moreLink:'https://wiki.seeedstudio.com/edge_ai_topic/', docList: [ { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/Real%20Time%20Subtitle%20Recoder%20on%20Nvidia%20Jetson", + "image": "https://files.seeedstudio.com/wiki/reComputer-Jetson/A608/recoder.gif", + "title": "Speech Subtitle Generation on Nvidia Jetson", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "path": "https://wiki.seeedstudio.com/Edge/NVIDIA_Jetson/Application/Generative_AI/Whisper_on_Jetson_for_Real_Time_Speech_to_Text/", + "image": "https://files.seeedstudio.com/wiki/reComputer-Jetson/A608/Real-Time-Whisper.gif", + "title": "Deploy Whisper on NVIDIA Jetson Orin for Real time Speech to Text", }, { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "https://wiki.seeedstudio.com/How_to_run_local_llm_text_to_image_on_reComputer/", + "image": "https://files.seeedstudio.com/wiki/wiki-ranger/Contributions/Nvidia_Jetson_recomputer_LLM_texto-to-image/23_creating_image1.gif", + "title": "Run a Local LLM Text-to-Image on reComputer", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S-tempor.png", - "title": "Fan is not turning on", + "path": "/alwaysAI-Jetson-Getting-Started", + "image": "https://files.seeedstudio.com/wiki/alwaysAI/pics/person-small.gif", + "title": "Object Detection with AlwaysAI", } , { - "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "path": "/YOLOv8-TRT-Jetson", + "image": "https://files.seeedstudio.com/wiki/YOLOV8-TRT/9.gif", + "title": "Object Detection with Yolov8", }, { "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "image": "https://files.seeedstudio.com/wiki/Lumeo/thumb.gif", + "title": "Object Detection with Lumeo", }, { "path": "/Fan_Pinout", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan Pinout", + "image": "https://files.seeedstudio.com/wiki/node-red/36.png", + "title": "No code Edge AI Tool", }, { - "path": "/Turn_on_the_Fan", - "image": "https://files.seeedstudio.com/wiki/wiki-platform/S.png", - "title": "Fan is not turning on", + "path": "/Security_Scan", + "image": "https://files.seeedstudio.com/wiki/SecurityCheck/Security_Scan22.jpg", + "title": "Knife Detection(X-ray)", } ] } diff --git a/src/components/home/form.tsx b/src/components/home/form.tsx index e33044ad0efb..5bcd9f416136 100644 --- a/src/components/home/form.tsx +++ b/src/components/home/form.tsx @@ -78,7 +78,7 @@ function IndexForm() { })}
- We really appreciate if you can contribute in any way the wiki platform, suggesting updates, fixing typos, accepting the assignments in demand, etc. Join us and get your reward! + We really appreciate if you can contribute in any way the wiki platform, suggesting updates, fixing typos, accepting the assignments in demand, etc. Join us and get your reward!
diff --git a/src/components/home/lasted.tsx b/src/components/home/lasted.tsx index fb4b0f2bb4d8..7d973b4cf6eb 100644 --- a/src/components/home/lasted.tsx +++ b/src/components/home/lasted.tsx @@ -1,47 +1,55 @@ -import React, { useState, useRef } from 'react'; -import css from './form.module.scss' -import clsx from 'clsx' - -import { useForm } from 'react-hook-form'; -import { ToastContainer, toast } from 'react-toastify'; -import 'react-toastify/dist/ReactToastify.css'; -// import getLatestDocs from '../../utils/getLatestDocs'; -// import fs from 'fs-extra'; -// import * as path from 'path'; -// import fm from 'front-matter'; +import React, { useState, useRef, useEffect } from 'react'; +import css from './form.module.scss'; +import clsx from 'clsx'; import { Swiper, SwiperSlide } from 'swiper/react'; import 'swiper/swiper-bundle.css'; import { FaChevronLeft, FaChevronRight } from 'react-icons/fa'; -import docList from '../../utils/wiki' -const getIndexImage = (src) => { - return src && require(`../../../assets/index/${src}`).default; -} +import docList from '../../utils/wiki'; function IndexLatestedViki() { - const numLatestDocs = 10; // 获取的最新文档数量 - // getLatestDocs(10) - // const docsDir = path.join(__dirname, '..', 'docs') - const [tabActive, setTabActive] = useState('Contributors') - const [loading, setLoading] = useState(false) - const [docs, setDocs] = React.useState([]); + const [tabActive, setTabActive] = useState('Contributors'); + const [loading, setLoading] = useState(false); + const [docs, setDocs] = useState([]); const swiperRef = useRef(null); const [canGoPrev, setCanGoPrev] = useState(false); - const [canGoNext, setCanGoNext] = useState((docList.length/8)>0); - // 示例:滑动到下一个 slide + const [canGoNext, setCanGoNext] = useState(false); + + useEffect(() => { + // 展平 `docList`,将所有子数组合并为一个数组 + const flattenedDocs = docList.flat(); + + // 按日期排序,假设每个文档都有 `date` 属性 + const sortedDocs = flattenedDocs.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime()); + + // 截取前 10 个文档 + const topDocs = sortedDocs.slice(0, 12); + + // 将文档按每两个分成一组 + const groupedDocs = []; + for (let i = 0; i < topDocs.length; i += 2) { + groupedDocs.push(topDocs.slice(i, i + 2)); // 每次取两个文档 + } + + // 更新 state + setDocs(groupedDocs); + + // 如果分组后的文档超过一行,允许向后滑动 + setCanGoNext(groupedDocs.length > 1); + }, []); + const handleNext = () => { if (swiperRef.current && swiperRef.current.swiper) { swiperRef.current.swiper.slideNext(); } }; - // 示例:滑动到上一个 slide const handlePrev = () => { if (swiperRef.current && swiperRef.current.swiper) { swiperRef.current.swiper.slidePrev(); } }; + const handleSlideChange = () => { - console.log(swiperRef.current.swiper ) if (swiperRef.current && swiperRef.current.swiper) { setCanGoPrev(!swiperRef.current.swiper.isBeginning); setCanGoNext(!swiperRef.current.swiper.isEnd); @@ -56,46 +64,44 @@ function IndexLatestedViki() { Latest Wiki
- - + +
- - {docList.map((arr, index) => { - return ( - - { - arr.map((item, index) => { - return ( - - -
{item.title}
-
- ) - }) - } -
- ) - - })} + {docs.map((group, index) => ( + +
+ {group.map((doc, subIndex) => ( + + {doc.title} +
{doc.title}
+
+ ))} +
+
+ ))}
- ) + ); } -export default IndexLatestedViki; \ No newline at end of file +export default IndexLatestedViki; diff --git a/src/define/indexData.js b/src/define/indexData.js index b696d43755dd..f305b3f676be 100644 --- a/src/define/indexData.js +++ b/src/define/indexData.js @@ -71,7 +71,7 @@ export const startedList = [ }, { title: 'Edge Controller', - link: 'https://wiki.seeedstudio.com/Edge_Box_RPI_Intro', + link: 'https://wiki.seeedstudio.com/Edge_Box_intro/', }, { title: 'Raspberry Pi Official', @@ -86,28 +86,24 @@ export const startedList = [ children: [ { title: 'reComputer Jetson Series', - link: 'https://wiki.seeedstudio.com/reComputer_Jetson_Intro/', + link: 'https://wiki.seeedstudio.com/reComputer_Intro/', }, { title: 'reComputer Jetson Industrial Series', link: - 'https://wiki.seeedstudio.com/reComputer_Jetson_Industrial_Intro/', - }, - { - title: 'reServer Jetson', - link: 'https://wiki.seeedstudio.com/reServer_Jetson_Intro/', + 'https://wiki.seeedstudio.com/reComputer_Industrial_Getting_Started/', }, { title: 'reServer Jetson Industrial', - link: 'https://wiki.seeedstudio.com/reServer_Jetson_Industrial_Intro/', + link: 'https://wiki.seeedstudio.com/reServer_Industrial_Getting_Started/', }, { title: 'Mini PC', - link: 'https://wiki.seeedstudio.com/AI_PC_Jetson_Intro/', + link: 'https://wiki.seeedstudio.com/reComputer_A203E_Flash_System/', }, { title: 'Carrier Boards', - link: 'https://wiki.seeedstudio.com/Other_Jetson_Boards_Intro/', + link: 'https://wiki.seeedstudio.com/reComputer_J1010_J101_Flash_Jetpack/', }, ], }, @@ -136,7 +132,7 @@ export const startedList = [ }, { title: 'Edge Controller', - link: 'https://wiki.seeedstudio.com/ESP_Edge_Controller_Intro/', + link: 'https://wiki.seeedstudio.com/Edgebox-ESP-100-Arduino/', }, ], }, @@ -155,7 +151,7 @@ export const startedList = [ }, { title: 'LinkStar Router Series', - link: 'https://wiki.seeedstudio.com/LinkStar_Router_Intro/', + link: 'https://wiki.seeedstudio.com/Linkstar_Intro/', }, ], }, @@ -170,7 +166,7 @@ export const startedList = [ }, { title: 'Arduino Shields', - link: 'https://wiki.seeedstudio.com/Arduino_Shields_Intro/', + link: 'https://wiki.seeedstudio.com/Shield/', }, { title: 'mmWave Radar Sensor', @@ -178,7 +174,7 @@ export const startedList = [ }, { title: 'Arduino Kits withs Courses', - link: 'https://wiki.seeedstudio.com/Arduino_Kit_Intro/', + link: 'https://wiki.seeedstudio.com/Grove-Beginner-Kit-For-Arduino/', }, ], }, @@ -196,7 +192,7 @@ export const startedList = [ link: 'https://wiki.seeedstudio.com/BitMaker/', }, { - title: 'BitMkaer Lite', + title: 'BitMaker Lite', link: 'https://wiki.seeedstudio.com/BitMaker_Lite/', }, { @@ -223,38 +219,48 @@ export const exploreList = [ children: [ { title: 'Awaken Your Home', - link: 'https://wiki.seeedstudio.com/home_assistant_topic/#jump2', + link: 'https://wiki.seeedstudio.com/home_assistant_topic/', }, { title: 'Home Assistant Projects', - link: 'https://wiki.seeedstudio.com/home_assistant_topic/#jump2', + link: 'https://wiki.seeedstudio.com/home_assistant_topic/#what-is-home-assistant', children: [ { - title: 'presented by Seeed Studio', + title: 'SenseCAP Integration for Home Assistant', link: - 'https://wiki.seeedstudio.com/home_assistant_topic/#-presented-by-seeed-studio-', + 'https://wiki.seeedstudio.com/home_assistant_sensecap/', }, { - title: 'presented by Community', + title: 'Extend Home Assistant with LoRaWAN device', link: - 'https://wiki.seeedstudio.com/home_assistant_topic/#-home-assistant-application-presented-by-our-friends--', + 'https://wiki.seeedstudio.com/ha_xiao_esp32/', }, { - title: 'presented by Contributors', + title: 'SenseCraft-HomeAssistant User Manual', link: - 'https://wiki.seeedstudio.com/home_assistant_topic/#-collaborate-more-home-assistant-projects-with-us-', + 'https://wiki.seeedstudio.com/sensecraft_homeassistant_userguide/', }, ], }, { - title: 'Devices for Home Assistant', + title: 'Home Assistant Official devices', + link: + 'https://wiki.seeedstudio.com/home_assistant_topic/#top-picks-form-home-assistant-official', + }, + { + title: 'Popular Add-ons', link: - 'https://wiki.seeedstudio.com/home_assistant_topic/#-devices-for-home-assistant-', + 'https://wiki.seeedstudio.com/home_assistant_topic/#popular-add-onsv', }, { - title: 'Peripherals for Home Assistant', + title: 'Seeed-powered Home Assistant Devices', link: - 'https://wiki.seeedstudio.com/home_assistant_topic/#peripherals-for-enhancing-home-assistant-devices', + 'https://wiki.seeedstudio.com/home_assistant_topic/#getting-started-with-seeed-devices-a-quick-setup-guide', + }, + { + title: 'Seeed powered Home Assistant Applications', + link: + 'https://wiki.seeedstudio.com/home_assistant_topic/#seeed-powered-home-assistant-applications', }, ], }, @@ -320,22 +326,22 @@ export const exploreList = [ ], }, { - title: 'Workshop', + title: 'TinyML Workshop', img: 'grove', - link: 'https://wiki.seeedstudio.com/Seeed_Studio_WorkShop_Intro/', + link: 'https://wiki.seeedstudio.com/tinyml_workshop_course_new/', children: [ { title: 'Course & Workshop', - link: 'https://wiki.seeedstudio.com/home_assistant_topic/#jump2', + link: 'https://wiki.seeedstudio.com/tinyml_workshop_course_new/', children: [ { - title: 'TinyML Workshop', - link: 'https://wiki.seeedstudio.com/tinyml_workshop_course_new/', + title: 'SenseCraft AI Platform', + link: 'https://wiki.seeedstudio.com/sscma/', }, { - title: 'Perception System Workshop', + title: 'Edge Impulse', link: - 'https://wiki.seeedstudio.com/perception_system_workshop_course', + 'https://wiki.seeedstudio.com/edgeimpulse/', }, ], }, @@ -344,16 +350,24 @@ export const exploreList = [ { title: 'Edge AI Solutions', img: 'grove', - link: 'https://wiki.seeedstudio.com/Edge_AI_Solutions_Intro/', + link: 'https://wiki.seeedstudio.com/edge_ai_topic/', children: [ { - title: 'Vision', - link: 'https://wiki.seeedstudio.com/Edge_AI_Vision_Solutions', + title: 'Generative AI', + link: 'https://wiki.seeedstudio.com/edge_ai_topic/#generative-ai', + }, + { + title: 'Object Recognition', + link: 'https://wiki.seeedstudio.com/edge_ai_topic/#object-recognition', }, { - title: 'Words', - link: 'https://wiki.seeedstudio.com/Edge_AI_Words_Solutsions', + title: 'Sound Recognition', + link: 'https://wiki.seeedstudio.com/edge_ai_topic/#sound-recognition', }, + { + title: 'Enhance Deep Learning Model', + link: 'https://wiki.seeedstudio.com/edge_ai_topic/#enhance-deep-learning-model', + }, ], }, { @@ -364,12 +378,24 @@ export const exploreList = [ { title: 'Hardware', link: - 'https://wiki.seeedstudio.com/Seeed_Studio_Open_Souce_Intro/#Hardware', + 'https://wiki.seeedstudio.com/open_source_topic/#open-source-hardware', }, { title: 'Software', link: - 'https://wiki.seeedstudio.com/Seeed_Studio_Open_Souce_Intro/#Software', + 'https://wiki.seeedstudio.com/open_source_topic/#open-source-software', + }, + ], + }, + { + title: '矽递科技Wiki文档平台', + img: 'grove', + link: 'https://wiki.seeedstudio.com/cn/Getting_Started/', + children: [ + { + title: '矽递科技Wiki文档平台', + link: + 'https://wiki.seeedstudio.com/cn/Getting_Started/', }, ], }, diff --git a/yarn.lock b/yarn.lock index eb55a61e0a1e..0715501d2a4b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1610,7 +1610,7 @@ "@docusaurus/theme-search-algolia" "2.4.3" "@docusaurus/types" "2.4.3" -"@docusaurus/react-loadable@5.5.2", "react-loadable@npm:@docusaurus/react-loadable@5.5.2": +"@docusaurus/react-loadable@5.5.2": version "5.5.2" resolved "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz" integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== @@ -4106,11 +4106,16 @@ clone-response@1.0.2, clone-response@^1.0.2: dependencies: mimic-response "^1.0.0" -clsx@^1.1.1, clsx@^1.2.1: +clsx@^1.2.1: version "1.2.1" resolved "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz" integrity sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg== +clsx@^2.1.0: + version "2.1.1" + resolved "https://registry.npmmirror.com/clsx/-/clsx-2.1.1.tgz#eed397c9fd8bd882bfb18deab7102049a2f32999" + integrity sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA== + coa@^2.0.2: version "2.0.2" resolved "https://registry.npmjs.org/coa/-/coa-2.0.2.tgz" @@ -11278,14 +11283,13 @@ react-dom@^16.8.4: prop-types "^15.6.2" scheduler "^0.19.1" -react-dom@^17.0.2: - version "17.0.2" - resolved "https://registry.npmjs.org/react-dom/-/react-dom-17.0.2.tgz" - integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA== +react-dom@^18.3.1: + version "18.3.1" + resolved "https://registry.npmmirror.com/react-dom/-/react-dom-18.3.1.tgz#c2265d79511b57d479b3dd3fdfa51536494c5cb4" + integrity sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" - scheduler "^0.20.2" + scheduler "^0.23.2" react-error-overlay@^6.0.11, react-error-overlay@^6.0.9: version "6.0.11" @@ -11308,15 +11312,15 @@ react-helmet-async@*, react-helmet-async@^1.3.0: react-fast-compare "^3.2.0" shallowequal "^1.1.0" -react-hook-form@^7.49.2: - version "7.49.2" - resolved "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.49.2.tgz" - integrity sha512-TZcnSc17+LPPVpMRIDNVITY6w20deMdNi6iehTFLV1x8SqThXGwu93HjlUVU09pzFgZH7qZOvLMM7UYf2ShAHA== +react-hook-form@^7.53.0: + version "7.53.0" + resolved "https://registry.npmmirror.com/react-hook-form/-/react-hook-form-7.53.0.tgz#3cf70951bf41fa95207b34486203ebefbd3a05ab" + integrity sha512-M1n3HhqCww6S2hxLxciEXy2oISPnAzxY7gvwVPrtlczTM/1dDadXgUxDpHMrMTblDOcm/AXtXxHwZ3jpg1mqKQ== -react-icons@^4.12.0: - version "4.12.0" - resolved "https://registry.npmjs.org/react-icons/-/react-icons-4.12.0.tgz" - integrity sha512-IBaDuHiShdZqmfc/TwHu6+d6k2ltNCf3AszxNmjJc1KUfXdEeRJOKyNvLmAHaarhzGmTSVygNdyu8/opXv2gaw== +react-icons@^5.3.0: + version "5.3.0" + resolved "https://registry.npmmirror.com/react-icons/-/react-icons-5.3.0.tgz#ccad07a30aebd40a89f8cfa7d82e466019203f1c" + integrity sha512-DnUk8aFbTyQPSkCfF8dbX6kQjXA9DktMeJqfjrg6cK9vwQVMxmcA3BfP4QoiztVmEHtwlTgLFsPuH2NskKT6eg== react-is@^16.13.1, react-is@^16.6.0, react-is@^16.7.0, react-is@^16.8.6: version "16.13.1" @@ -11358,6 +11362,14 @@ react-loadable-ssr-addon-v5-slorber@^1.0.1: dependencies: "@babel/runtime" "^7.10.3" +"react-loadable@npm:@docusaurus/react-loadable@5.5.2": + version "5.5.2" + resolved "https://registry.npmjs.org/@docusaurus/react-loadable/-/react-loadable-5.5.2.tgz" + integrity sha512-A3dYjdBGuy0IGT+wyLIGIKLRE+sAk1iNk0f1HjNDysO7u8lhL4N3VEm+FAubmJbAztn94F7MxBTPmnixbiyFdQ== + dependencies: + "@types/react" "*" + prop-types "^15.6.2" + react-popper@^2.3.0: version "2.3.0" resolved "https://registry.npmjs.org/react-popper/-/react-popper-2.3.0.tgz" @@ -11425,12 +11437,12 @@ react-textarea-autosize@^8.3.2: use-composed-ref "^1.3.0" use-latest "^1.2.1" -react-toastify@^9.1.3: - version "9.1.3" - resolved "https://registry.npmjs.org/react-toastify/-/react-toastify-9.1.3.tgz" - integrity sha512-fPfb8ghtn/XMxw3LkxQBk3IyagNpF/LIKjOBflbexr2AWxAH1MJgvnESwEwBn9liLFXgTKWgBSdZpw9m4OTHTg== +react-toastify@^10.0.5: + version "10.0.5" + resolved "https://registry.npmmirror.com/react-toastify/-/react-toastify-10.0.5.tgz#6b8f8386060c5c856239f3036d1e76874ce3bd1e" + integrity sha512-mNKt2jBXJg4O7pSdbNUfDdTsK9FIdikfsIE/yUCxbAEXl4HMyJaivrVFcn3Elvt5xvCQYhUZm+hqTIu1UXM3Pw== dependencies: - clsx "^1.1.1" + clsx "^2.1.0" react@^16.8.4: version "16.14.0" @@ -11441,13 +11453,12 @@ react@^16.8.4: object-assign "^4.1.1" prop-types "^15.6.2" -react@^17.0.2: - version "17.0.2" - resolved "https://registry.npmjs.org/react/-/react-17.0.2.tgz" - integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA== +react@^18.3.1: + version "18.3.1" + resolved "https://registry.npmmirror.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891" + integrity sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" read-pkg-up@^1.0.1: version "1.0.1" @@ -12091,13 +12102,12 @@ scheduler@^0.19.1: loose-envify "^1.1.0" object-assign "^4.1.1" -scheduler@^0.20.2: - version "0.20.2" - resolved "https://registry.npmjs.org/scheduler/-/scheduler-0.20.2.tgz" - integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ== +scheduler@^0.23.2: + version "0.23.2" + resolved "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.2.tgz#414ba64a3b282892e944cf2108ecc078d115cdc3" + integrity sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" schema-utils@2.7.0: version "2.7.0"