Skip to content

Commit 02ca76b

Browse files
author
lsxredrain
committed
feat: update to 2.4.1
1 parent 0ef9a20 commit 02ca76b

File tree

8 files changed

+44
-90
lines changed

8 files changed

+44
-90
lines changed

config/i18n.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module.exports = {
22
defaultLocale: 'zh-cn',
3-
// locales: ['en', 'zh-cn'],
4-
locales: ['zh-cn'],
3+
locales: ['en', 'zh-cn'],
4+
// locales: ['zh-cn'],
55
/*localeConfigs: {
66
"zh-cn": {
77
htmlLang: '中文',

config/navbar.js

Lines changed: 3 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -11,81 +11,10 @@ module.exports = {
1111
position: 'right'
1212
},
1313
{
14-
href: 'https://prod.dgiotcloud.cn/#/login',
15-
label: 'DgiotCloud',
16-
position: 'right'
17-
},
18-
{
19-
href: 'http://www.dgiotcloud.cn/?page_id=5',
20-
label: 'Products',
21-
position: 'right'
22-
},
23-
{
24-
type: 'doc',
25-
docId: 'product_doc/docs/deployment_details/index',
26-
position: 'right',
27-
label: 'Docs',
28-
},
29-
{
30-
href: 'https://www.dgiotcloud.cn/?cat=19',
31-
label: 'Blog',
32-
position: 'right'
33-
},
34-
{
35-
href: 'http://www.dgiotcloud.cn/?cat=1',
36-
label: 'Media',
37-
position: 'right'
38-
},
39-
{
40-
label: 'Solution',
41-
position: 'right',
42-
to: '/',
43-
items: [
44-
{
45-
label: 'SmartBuilding',
46-
to: 'http://www.dgiotcloud.cn/?cat=4',
47-
},
48-
{
49-
label: 'SmartVenue',
50-
to: 'http://www.dgiotcloud.cn/?cat=5',
51-
},
52-
{
53-
label: 'DigitalFactory',
54-
to: 'http://www.dgiotcloud.cn/?cat=6',
55-
},
56-
{
57-
label: 'WisdomEnergy',
58-
to: 'https://www.dgiotcloud.cn/category/product/%e6%99%ba%e6%85%a7%e8%83%bd%e6%ba%90/',
59-
},
60-
{
61-
label: 'CloudDetection',
62-
to: 'http://www.dgiotcloud.cn/?cat=22',
63-
},
64-
{
65-
label: 'CloudTest',
66-
to: 'http://www.dgiotcloud.cn/?cat=23',
67-
},
68-
],
69-
},
70-
{
71-
href: 'https://www.dgiotcloud.cn/?cat=25',
72-
label: 'Partner',
73-
position: 'right'
74-
},
75-
{
76-
href: 'https://www.dgiotcloud.cn/?page_id=12',
77-
label: 'Guest',
78-
position: 'right'
14+
href: 'https://gitee.com/dgiiot',
15+
label: 'Gitee',
16+
position: 'right',
7917
},
80-
/*{
81-
href: 'http://www.dgiotcloud.cn/?page_id=2',
82-
label: 'Support',
83-
position: 'right'
84-
},*/
85-
/*{
86-
type: 'localeDropdown',
87-
position: 'right',
88-
},*/
8918
{
9019
href: 'https://github.com/dgiot/dgiot',
9120
label: 'GitHub',
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"position": 2.5,
3+
"label": "教程",
4+
"collapsible": true,
5+
"collapsed": false,
6+
"className": "red",
7+
"link": {
8+
"type": "generated-index",
9+
"title": "教程总览"
10+
},
11+
"customProps": {
12+
"description": "这个描述可以用在 swizzle 的 DocCard 里"
13+
}
14+
}

docs/news.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: 产品说明
33
sidebar_position: 1
4+
sidebar_class_name: green
45
---
56

67
## 版本说明

package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
},
2222
"dependencies": {
2323
"@ant-design/icons": "^4.7.0",
24-
"@docusaurus/core": "^2.0.0-beta.17",
25-
"@docusaurus/preset-classic": "^2.0.0-beta.17",
26-
"@docusaurus/theme-search-algolia": "^2.0.0-beta.21",
24+
"@docusaurus/core": "^2.4.1",
25+
"@docusaurus/preset-classic": "^2.4.1",
26+
"@docusaurus/theme-search-algolia": "^2.4.1",
2727
"@mdx-js/react": "^1.6.22",
2828
"antd": "^4.21.4",
2929
"axios": "^0.27.2",
@@ -36,15 +36,15 @@
3636
"devDependencies": {
3737
"@commitlint/cli": "^17.0.3",
3838
"@commitlint/config-conventional": "^17.0.3",
39-
"@docusaurus/plugin-client-redirects": "^2.0.0-beta.21",
40-
"@docusaurus/plugin-content-blog": "^2.0.0-beta.21",
41-
"@docusaurus/plugin-content-pages": "^2.0.0-beta.21",
42-
"@docusaurus/plugin-debug": "^2.0.0-beta.21",
43-
"@docusaurus/plugin-google-analytics": "^2.0.0-beta.21",
44-
"@docusaurus/plugin-google-gtag": "^2.0.0-beta.21",
45-
"@docusaurus/plugin-ideal-image": "^2.0.0-beta.21",
46-
"@docusaurus/plugin-pwa": "^2.0.0-beta.21",
47-
"@docusaurus/plugin-sitemap": "^2.0.0-beta.21",
39+
"@docusaurus/plugin-client-redirects": "^2.4.1",
40+
"@docusaurus/plugin-content-blog": "^2.4.1",
41+
"@docusaurus/plugin-content-pages": "^2.4.1",
42+
"@docusaurus/plugin-debug": "^2.4.1",
43+
"@docusaurus/plugin-google-analytics": "^2.4.1",
44+
"@docusaurus/plugin-google-gtag": "^2.4.1",
45+
"@docusaurus/plugin-ideal-image": "^2.4.1",
46+
"@docusaurus/plugin-pwa": "^2.4.1",
47+
"@docusaurus/plugin-sitemap": "^2.4.1",
4848
"@typescript-eslint/eslint-plugin": "5.25.0",
4949
"@typescript-eslint/parser": "5.25.0",
5050
"@verdaccio/eslint-config": "*",

src/components/HomepageFeatures/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function HomepageHeader() {
4444
},
4545
{
4646
"text": "智慧园区",
47-
"cover": "https://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/dgiot_doc/index/Community.png",
47+
"cover": "http://dgiot-1253666439.cos.ap-shanghai-fsi.myqcloud.com/logo/parse.png",
4848
"href": "/docs/user_manual/docs/equipment_operational/equipment_leasing"
4949
},
5050
{

src/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function HomepageHeader() {
2626
</span>
2727
<p></p>
2828
<p className="hero__subtitle">
29-
<a href="https://doc.dgiotcloud.cn/docs/product_doc/docs/deployment_details/">
29+
<a href="/docs/product_doc/docs/deployment_details/">
3030
<button className={styles.buttons1}>进入文档 →</button>
3131
</a>
3232
<a href="https://prod.dgiotcloud.cn/#/login">

src/theme/CodeBlock/index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import React from 'react';
2+
import CodeBlock from '@theme-original/CodeBlock';
3+
4+
export default function CodeBlockWrapper(props) {
5+
return (
6+
<>
7+
<CodeBlock {...props} />
8+
</>
9+
);
10+
}

0 commit comments

Comments
 (0)