From 74715084bfc46287161dd6a4f167401632609182 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AD=8F=E9=A3=8E?= Date: Fri, 21 Mar 2025 14:48:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=B3=BB=E7=BB=9F=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/dummy.md | 5 ++ docs/findcm/_category_.json | 8 +++ docs/findcm/intro.md | 27 ++++++++++ docs/rchip/_category_.json | 7 +++ docs/rchip/intro.md | 5 ++ docs/rchip/qa.md | 25 ++++++++++ docusaurus.config.js | 99 ++++++++++++++++++++++--------------- sidebars.js | 70 +++++++++++++++++++++++--- src/pages/index.js | 79 +++++++++++++++++------------ 9 files changed, 247 insertions(+), 78 deletions(-) create mode 100644 docs/dummy.md create mode 100644 docs/findcm/_category_.json create mode 100644 docs/findcm/intro.md create mode 100644 docs/rchip/_category_.json create mode 100644 docs/rchip/intro.md create mode 100644 docs/rchip/qa.md diff --git a/docs/dummy.md b/docs/dummy.md new file mode 100644 index 0000000..13f7082 --- /dev/null +++ b/docs/dummy.md @@ -0,0 +1,5 @@ +--- +sidebar_position: 3 +--- + +(空) \ No newline at end of file diff --git a/docs/findcm/_category_.json b/docs/findcm/_category_.json new file mode 100644 index 0000000..43afabe --- /dev/null +++ b/docs/findcm/_category_.json @@ -0,0 +1,8 @@ +{ + "label": "FindCM - Basics", + "position": 1, + "link": { + "type": "generated-index", + "description": "5 minutes to learn the most important FindCM concepts." + } +} diff --git a/docs/findcm/intro.md b/docs/findcm/intro.md new file mode 100644 index 0000000..4c81526 --- /dev/null +++ b/docs/findcm/intro.md @@ -0,0 +1,27 @@ +--- +sidebar_position: 1 +--- + +# 高精度服务账号 + +### 厘米级账号 +- 产品名称: + - 千寻知寸(FindCM) +- 产品规格: + - 支持卫星频点:五星十六频 + BDS B1I + B2I + B3I + B2C +B2a + GPS L1C/A + L2W + L5 + GLO L1C + L2P + GAL E1 + E5a + E5b + QZSS L1C/A + L2C + L5 + +更多信息:[千寻知寸](https://help.qxwz.com/965215923) + +### 亚米级账号 +- 产品名称: + - 千寻跬步(FindM Pro) +- 产品规格: + - 支持卫星频点:五星五频 + - BDS B1I,GPS L1C,GLO G1C,GALILEO E1,QZSS L1 + +更多信息:[千寻跬步](https://help.qxwz.com/324431982) \ No newline at end of file diff --git a/docs/rchip/_category_.json b/docs/rchip/_category_.json new file mode 100644 index 0000000..a810911 --- /dev/null +++ b/docs/rchip/_category_.json @@ -0,0 +1,7 @@ +{ + "label": "Rchip - Basics", + "position": 1, + "link": { + "type": "generated-index" + } +} diff --git a/docs/rchip/intro.md b/docs/rchip/intro.md new file mode 100644 index 0000000..56b68e2 --- /dev/null +++ b/docs/rchip/intro.md @@ -0,0 +1,5 @@ +--- +sidebar_position: 1 +--- + +# 短报文通讯模组 diff --git a/docs/rchip/qa.md b/docs/rchip/qa.md new file mode 100644 index 0000000..1ac9a92 --- /dev/null +++ b/docs/rchip/qa.md @@ -0,0 +1,25 @@ +--- +sidebar_position: 2 +--- + +# 常见问题 + +## 北斗卡 +北斗卡资费的两种模式: +1、小流量、低频使用 +选择中移 +2、大流量、包年 +选择中兵 +3、卡种类分单向卡和双向卡 + +|项目|双向卡|单向卡| +| ---- | ---- | ---- | +|通信模式|能入站,也能出站,双向通信(终端和终端互发)|只能入站,不能出站,单向通信(终端只能发给平台)| +|接收方式|终端接收/指挥机接收/平台http推送(按需开通)|平台接收和http推送| +|发手机短信|不支持发送到手机短信|支持发短信到任意手机号码| +|通信等级|一般60秒频率2级卡为主,其他频率容量需另申请 | +|所需文件|《国家机关介绍信》《终端采购合同》《终端序列号》《实名制信息》《需求必要性说明函》...等10份材料|《北斗卡申请表》《用户业务需求统计表》《服务意向协议》等材料| +|申请周期|25 - 35工作日|1工作日| +|费用情况|按年缴费| + +备注:1、以上北斗卡客户自行申请 2、受政策影响后续可能变化。 diff --git a/docusaurus.config.js b/docusaurus.config.js index cbea7b1..28d52b9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -6,9 +6,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula'); /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'My Site', - tagline: 'Dinosaurs are cool', - url: 'https://your-docusaurus-test-site.com', + title: '瑞彩千寻产品线', + tagline: '高精度定位/北三短报文', + url: 'https://www.makefire.fun', baseUrl: '/', onBrokenLinks: 'throw', onBrokenMarkdownLinks: 'warn', @@ -16,15 +16,15 @@ const config = { // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these. - organizationName: 'facebook', // Usually your GitHub org/user name. - projectName: 'docusaurus', // Usually your repo name. + // organizationName: 'facebook', // Usually your GitHub org/user name. + // projectName: 'docusaurus', // Usually your repo name. // Even if you don't use internalization, you can use this field to set useful // metadata like html lang. For example, if your site is Chinese, you may want // to replace "en" with "zh-Hans". i18n: { - defaultLocale: 'en', - locales: ['en'], + defaultLocale: 'zh-Hans', + locales: ['zh-Hans'], }, presets: [ @@ -33,18 +33,19 @@ const config = { /** @type {import('@docusaurus/preset-classic').Options} */ ({ docs: { + routeBasePath: '/', // 将文档设置为根路由 sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + // editUrl: + // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', }, blog: { showReadingTime: true, // Please change this to your repo. // Remove this to remove the "edit this page" links. - editUrl: - 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', + // editUrl: + // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', }, theme: { customCss: require.resolve('./src/css/custom.css'), @@ -57,70 +58,86 @@ const config = { /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { - title: 'My Site', + title: '产品分类', logo: { - alt: 'My Site Logo', + alt: 'QX Logo', src: 'img/logo.svg', }, items: [ + // { + // type: 'doc', + // docId: 'hello', + // position: 'left', + // label: '使用说明', + // }, { type: 'doc', - docId: 'intro', + docId: 'findcm/intro', position: 'left', - label: 'Tutorial', + label: '高精度服务账号', }, - {to: '/blog', label: 'Blog', position: 'left'}, { - href: 'https://github.com/facebook/docusaurus', - label: 'GitHub', - position: 'right', + type: 'doc', + docId: 'rchip/intro', + position: 'left', + label: '短报文通讯模组', }, + // {to: '/blog', label: 'Blog', position: 'left'}, + // { + // href: 'https://github.com/facebook/docusaurus', + // label: 'GitHub', + // position: 'right', + // }, ], }, footer: { style: 'dark', links: [ { - title: 'Docs', + title: '文档', items: [ { - label: 'Tutorial', - to: '/docs/intro', + label: '高精度账号', + to: 'findcm/intro', + }, + { + label: '短报文模组', + to: 'rchip/intro', }, ], }, { - title: 'Community', + title: '链接', items: [ { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/docusaurus', + label: '瑞彩电子', + href: 'https://www.reecam.net/', }, { - label: 'Discord', - href: 'https://discordapp.com/invite/docusaurus', - }, - { - label: 'Twitter', - href: 'https://twitter.com/docusaurus', + label: '千寻位置', + href: 'https://www.qxwz.com/', }, + // { + // label: 'Twitter', + // href: 'https://twitter.com/docusaurus', + // }, ], }, { - title: 'More', + title: '联系方式', items: [ - { - label: 'Blog', - to: '/blog', - }, - { - label: 'GitHub', - href: 'https://github.com/facebook/docusaurus', - }, + // { + // label: 'Blog', + // to: '/blog', + // }, + // { + // label: 'GitHub', + // href: 'https://github.com/facebook/docusaurus', + // }, ], }, ], - copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, + // copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`, }, prism: { theme: lightCodeTheme, diff --git a/sidebars.js b/sidebars.js index fd342f2..a77feb4 100644 --- a/sidebars.js +++ b/sidebars.js @@ -14,18 +14,76 @@ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ const sidebars = { // By default, Docusaurus generates a sidebar from the docs folder structure - tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], + //tutorialSidebar: [{type: 'autogenerated', dirName: '.'}], // But you can create a sidebar manually - /* - tutorialSidebar: [ + TestSidebar: [ { type: 'category', - label: 'Tutorial', - items: ['hello'], + label: '这是一个测试', + items: ['hello', 'intro'], + }, + { + type: 'category', + label: '高精度模组', + items: [ + // 文章文件名为 getting-started.md + 'tutorial-basics/create-a-page', + 'tutorial-basics/create-a-document', + ], }, ], - */ + + FindCMSidebar: [ + { + type: 'doc', + id: 'findcm/intro', + label: '产品介绍' // 可选,用于自定义侧边栏显示的文本 + }, + { + type: 'category', + label: '账号体系', + items: [ + 'dummy' + ], + }, + { + type: 'category', + label: '终端集成', + items: [ + 'dummy', + // 文章文件名为 getting-started.md + //'tutorial-basics/create-a-page', + ], + }, + ], + + RchipSidebar: [ + { + type: 'doc', + id: 'rchip/intro', + label: '产品介绍' // 可选,用于自定义侧边栏显示的文本 + }, + { + type: 'doc', + id: 'rchip/qa', + label: '常见问题' // 可选,用于自定义侧边栏显示的文本 + }, + // { + // type: 'category', + // label: 'Rchip', + // items: ['intro'], + // }, + // { + // type: 'category', + // label: '短报文通信模组', + // items: [ + // // 文章文件名为 getting-started.md + // 'tutorial-basics/create-a-page', + // ], + // }, + ], + }; module.exports = sidebars; diff --git a/src/pages/index.js b/src/pages/index.js index affcd90..ae7f68c 100644 --- a/src/pages/index.js +++ b/src/pages/index.js @@ -7,35 +7,52 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures'; import styles from './index.module.css'; -function HomepageHeader() { - const {siteConfig} = useDocusaurusContext(); - return ( -
-
-

{siteConfig.title}

-

{siteConfig.tagline}

-
- - Docusaurus Tutorial - 5min ⏱️ - -
-
-
- ); -} +//跳转到文档页面用,不推荐,没安装上redirect +import { useHistory } from '@docusaurus/router'; -export default function Home() { - const {siteConfig} = useDocusaurusContext(); - return ( - - -
- -
-
- ); -} +const HomePage = () => { + const history = useHistory(); + + React.useEffect(() => { + // 跳转到指定文档页面 + history.push('findcm/intro'); // 替换为你要跳转的文档路径 + }, [history]); + + return null; +}; +// 系统自带什么方案跳转? + +export default HomePage; + +// function HomepageHeader() { +// const {siteConfig} = useDocusaurusContext(); +// return ( +//
+//
+//

{siteConfig.title}

+//

{siteConfig.tagline}

+//
+// +// 快速开始 - 5min ⏱️ +// +//
+//
+//
+// ); +// } + +// export default function Home() { +// const {siteConfig} = useDocusaurusContext(); +// return ( +// +// +//
+// +//
+//
+// ); +// }