修改系统配置

This commit is contained in:
2025-03-21 14:48:28 +08:00
parent e0f4ddec67
commit 74715084bf
9 changed files with 247 additions and 78 deletions

5
docs/dummy.md Normal file
View File

@@ -0,0 +1,5 @@
---
sidebar_position: 3
---
(空)

View File

@@ -0,0 +1,8 @@
{
"label": "FindCM - Basics",
"position": 1,
"link": {
"type": "generated-index",
"description": "5 minutes to learn the most important FindCM concepts."
}
}

27
docs/findcm/intro.md Normal file
View File

@@ -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)

View File

@@ -0,0 +1,7 @@
{
"label": "Rchip - Basics",
"position": 1,
"link": {
"type": "generated-index"
}
}

5
docs/rchip/intro.md Normal file
View File

@@ -0,0 +1,5 @@
---
sidebar_position: 1
---
# 短报文通讯模组

25
docs/rchip/qa.md Normal file
View File

@@ -0,0 +1,25 @@
---
sidebar_position: 2
---
# 常见问题
## 北斗卡
北斗卡资费的两种模式:
1、小流量、低频使用
选择中移
2、大流量、包年
选择中兵
3、卡种类分单向卡和双向卡
|项目|双向卡|单向卡|
| ---- | ---- | ---- |
|通信模式|能入站,也能出站,双向通信(终端和终端互发)|只能入站,不能出站,单向通信(终端只能发给平台)|
|接收方式|终端接收/指挥机接收/平台http推送(按需开通)|平台接收和http推送|
|发手机短信|不支持发送到手机短信|支持发短信到任意手机号码|
|通信等级|一般60秒频率2级卡为主其他频率容量需另申请 |
|所需文件|《国家机关介绍信》《终端采购合同》《终端序列号》《实名制信息》《需求必要性说明函》...等10份材料|《北斗卡申请表》《用户业务需求统计表》《服务意向协议》等材料|
|申请周期|25 - 35工作日|1工作日|
|费用情况|按年缴费|
备注1、以上北斗卡客户自行申请 2、受政策影响后续可能变化。

View File

@@ -6,9 +6,9 @@ const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */ /** @type {import('@docusaurus/types').Config} */
const config = { const config = {
title: 'My Site', title: '瑞彩千寻产品线',
tagline: 'Dinosaurs are cool', tagline: '高精度定位/北三短报文',
url: 'https://your-docusaurus-test-site.com', url: 'https://www.makefire.fun',
baseUrl: '/', baseUrl: '/',
onBrokenLinks: 'throw', onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn', onBrokenMarkdownLinks: 'warn',
@@ -16,15 +16,15 @@ const config = {
// GitHub pages deployment config. // GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these. // If you aren't using GitHub pages, you don't need these.
organizationName: 'facebook', // Usually your GitHub org/user name. // organizationName: 'facebook', // Usually your GitHub org/user name.
projectName: 'docusaurus', // Usually your repo name. // projectName: 'docusaurus', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful // 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 // metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans". // to replace "en" with "zh-Hans".
i18n: { i18n: {
defaultLocale: 'en', defaultLocale: 'zh-Hans',
locales: ['en'], locales: ['zh-Hans'],
}, },
presets: [ presets: [
@@ -33,18 +33,19 @@ const config = {
/** @type {import('@docusaurus/preset-classic').Options} */ /** @type {import('@docusaurus/preset-classic').Options} */
({ ({
docs: { docs: {
routeBasePath: '/', // 将文档设置为根路由
sidebarPath: require.resolve('./sidebars.js'), sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo. // Please change this to your repo.
// Remove this to remove the "edit this page" links. // Remove this to remove the "edit this page" links.
editUrl: // editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
}, },
blog: { blog: {
showReadingTime: true, showReadingTime: true,
// Please change this to your repo. // Please change this to your repo.
// Remove this to remove the "edit this page" links. // Remove this to remove the "edit this page" links.
editUrl: // editUrl:
'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/', // 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
}, },
theme: { theme: {
customCss: require.resolve('./src/css/custom.css'), customCss: require.resolve('./src/css/custom.css'),
@@ -57,70 +58,86 @@ const config = {
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */ /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({ ({
navbar: { navbar: {
title: 'My Site', title: '产品分类',
logo: { logo: {
alt: 'My Site Logo', alt: 'QX Logo',
src: 'img/logo.svg', src: 'img/logo.svg',
}, },
items: [ items: [
// {
// type: 'doc',
// docId: 'hello',
// position: 'left',
// label: '使用说明',
// },
{ {
type: 'doc', type: 'doc',
docId: 'intro', docId: 'findcm/intro',
position: 'left', position: 'left',
label: 'Tutorial', label: '高精度服务账号',
}, },
{to: '/blog', label: 'Blog', position: 'left'},
{ {
href: 'https://github.com/facebook/docusaurus', type: 'doc',
label: 'GitHub', docId: 'rchip/intro',
position: 'right', position: 'left',
label: '短报文通讯模组',
}, },
// {to: '/blog', label: 'Blog', position: 'left'},
// {
// href: 'https://github.com/facebook/docusaurus',
// label: 'GitHub',
// position: 'right',
// },
], ],
}, },
footer: { footer: {
style: 'dark', style: 'dark',
links: [ links: [
{ {
title: 'Docs', title: '文档',
items: [ items: [
{ {
label: 'Tutorial', label: '高精度账号',
to: '/docs/intro', to: 'findcm/intro',
},
{
label: '短报文模组',
to: 'rchip/intro',
}, },
], ],
}, },
{ {
title: 'Community', title: '链接',
items: [ items: [
{ {
label: 'Stack Overflow', label: '瑞彩电子',
href: 'https://stackoverflow.com/questions/tagged/docusaurus', href: 'https://www.reecam.net/',
}, },
{ {
label: 'Discord', label: '千寻位置',
href: 'https://discordapp.com/invite/docusaurus', href: 'https://www.qxwz.com/',
},
{
label: 'Twitter',
href: 'https://twitter.com/docusaurus',
}, },
// {
// label: 'Twitter',
// href: 'https://twitter.com/docusaurus',
// },
], ],
}, },
{ {
title: 'More', title: '联系方式',
items: [ items: [
{ // {
label: 'Blog', // label: 'Blog',
to: '/blog', // to: '/blog',
}, // },
{ // {
label: 'GitHub', // label: 'GitHub',
href: 'https://github.com/facebook/docusaurus', // 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: { prism: {
theme: lightCodeTheme, theme: lightCodeTheme,

View File

@@ -14,18 +14,76 @@
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = { const sidebars = {
// By default, Docusaurus generates a sidebar from the docs folder structure // 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 // But you can create a sidebar manually
/* TestSidebar: [
tutorialSidebar: [
{ {
type: 'category', type: 'category',
label: 'Tutorial', label: '这是一个测试',
items: ['hello'], 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; module.exports = sidebars;

View File

@@ -7,35 +7,52 @@ import HomepageFeatures from '@site/src/components/HomepageFeatures';
import styles from './index.module.css'; import styles from './index.module.css';
function HomepageHeader() { //跳转到文档页面用不推荐没安装上redirect
const {siteConfig} = useDocusaurusContext(); import { useHistory } from '@docusaurus/router';
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
<h1 className="hero__title">{siteConfig.title}</h1>
<p className="hero__subtitle">{siteConfig.tagline}</p>
<div className={styles.buttons}>
<Link
className="button button--secondary button--lg"
to="/docs/intro">
Docusaurus Tutorial - 5min
</Link>
</div>
</div>
</header>
);
}
export default function Home() { const HomePage = () => {
const {siteConfig} = useDocusaurusContext(); const history = useHistory();
return (
<Layout React.useEffect(() => {
title={`Hello from ${siteConfig.title}`} // 跳转到指定文档页面
description="Description will go into a meta tag in <head />"> history.push('findcm/intro'); // 替换为你要跳转的文档路径
<HomepageHeader /> }, [history]);
<main>
<HomepageFeatures /> return null;
</main> };
</Layout> // 系统自带什么方案跳转?
);
} export default HomePage;
// function HomepageHeader() {
// const {siteConfig} = useDocusaurusContext();
// return (
// <header className={clsx('hero hero--primary', styles.heroBanner)}>
// <div className="container">
// <h1 className="hero__title">{siteConfig.title}</h1>
// <p className="hero__subtitle">{siteConfig.tagline}</p>
// <div className={styles.buttons}>
// <Link
// className="button button--secondary button--lg"
// to="/docs/intro">
// 快速开始 - 5min ⏱️
// </Link>
// </div>
// </div>
// </header>
// );
// }
// export default function Home() {
// const {siteConfig} = useDocusaurusContext();
// return (
// <Layout
// title={`Hello from ${siteConfig.title}`}
// description="Description will go into a meta tag in <head />">
// <HomepageHeader />
// <main>
// <HomepageFeatures />
// </main>
// </Layout>
// );
// }