Skip to content

Commit 11d2b01

Browse files
committed
Update.
1 parent 00d9b13 commit 11d2b01

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

i18n/en/code.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,5 +331,8 @@
331331
"cmfcmf/d-s-l.searchBar.noResults": {
332332
"message": "No results found.",
333333
"description": "message shown if no results are found"
334+
},
335+
"homepage.onlineDemo": {
336+
"message": "Online Demo"
334337
}
335338
}

i18n/en/docusaurus-plugin-content-docs/current.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,17 @@
66
"sidebar.docs.category.Environment Setup": {
77
"message": "Environment Setup",
88
"description": "The label for category Environment Setup in sidebar docs"
9+
},
10+
"sidebar.docs.category.Code Generation": {
11+
"message": "Code Generation",
12+
"description": "The label for category Code Generation in sidebar docs"
13+
},
14+
"sidebar.docs.category.STM32 Code Generation": {
15+
"message": "STM32 Code Generation",
16+
"description": "The label for category STM32 Code Generation in sidebar docs"
17+
},
18+
"sidebar.docs.category.Project Management (XRobot)": {
19+
"message": "Project Management (XRobot)",
20+
"description": "The label for category Project Management (XRobot) in sidebar docs"
921
}
1022
}

src/pages/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export default function Home(): JSX.Element {
5353

5454
<motion.div
5555
className="buttons"
56+
style={{ display: 'flex', gap: '1.5rem', justifyContent: 'center', flexWrap: 'wrap' }}
5657
initial={{ opacity: 0, scale: 0.95 }}
5758
animate={{ opacity: 1, scale: 1 }}
5859
transition={{ delay: 0.6, duration: 0.6 }}
@@ -63,6 +64,13 @@ export default function Home(): JSX.Element {
6364
>
6465
<Translate id="homepage.getStarted">开始阅读</Translate>
6566
</Link>
67+
68+
<Link
69+
className="button button--secondary button--lg"
70+
to="https://xrobot-org.github.io/libxr_web_demo/"
71+
>
72+
<Translate id="homepage.onlineDemo">在线演示</Translate>
73+
</Link>
6674
</motion.div>
6775
</div>
6876
</section>

0 commit comments

Comments
 (0)