主页修改,部分内容填充测试
This commit is contained in:
+24
-6
@@ -6,19 +6,37 @@ import starlight from '@astrojs/starlight';
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
starlight({
|
||||
title: 'My Docs',
|
||||
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
|
||||
title: 'ΣDOCS',
|
||||
defaultLocale: 'zh-cn',
|
||||
locales: {
|
||||
// English docs in `src/content/docs/en/`
|
||||
en: {
|
||||
label: 'English',
|
||||
},
|
||||
// Simplified Chinese docs in `src/content/docs/zh-cn/`
|
||||
'zh-cn': {
|
||||
label: '简体中文',
|
||||
lang: 'zh-CN',
|
||||
},
|
||||
},
|
||||
social: [{ icon: 'github', label: 'SGit', href: 'https://git.simba-robotics.com/PRAM/simba_docs' }],
|
||||
sidebar: [
|
||||
{
|
||||
label: 'Guides',
|
||||
label: '视觉算法',
|
||||
translations: {
|
||||
'en': 'Vision & Algorithm',
|
||||
},
|
||||
items: [
|
||||
// Each item here is one entry in the navigation menu.
|
||||
{ label: 'Example Guide', slug: 'guides/example' },
|
||||
{ autogenerate: { directory: 'vsag' } },
|
||||
],
|
||||
},
|
||||
{
|
||||
label: 'Reference',
|
||||
items: [{ autogenerate: { directory: 'reference' } }],
|
||||
label: '电传测控',
|
||||
translations: {
|
||||
'en': 'Electronics & Control',
|
||||
},
|
||||
items: [{ autogenerate: { directory: 'elct' } }],
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
||||
Generated
+6785
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@ template: splash # Remove or comment out this line to display the site sidebar o
|
||||
hero:
|
||||
tagline: Congrats on setting up a new Starlight project!
|
||||
image:
|
||||
file: ../../assets/houston.webp
|
||||
file: ../../../assets/houston.webp
|
||||
actions:
|
||||
- text: Example Guide
|
||||
link: /guides/example/
|
||||
@@ -1,11 +0,0 @@
|
||||
---
|
||||
title: Example Reference
|
||||
description: A reference page in my new Starlight docs site.
|
||||
---
|
||||
|
||||
Reference pages are ideal for outlining how things work in terse and clear terms.
|
||||
Less concerned with telling a story or addressing a specific use case, they should give a comprehensive outline of what you're documenting.
|
||||
|
||||
## Further reading
|
||||
|
||||
- Read [about reference](https://diataxis.fr/reference/) in the Diátaxis framework
|
||||
@@ -0,0 +1,42 @@
|
||||
---
|
||||
title: 欢迎使用 Σ 文档
|
||||
description: 本文档是一份开放贡献的 RoboMaster 系列赛事相关知识教程库。
|
||||
template: splash # Remove or comment out this line to display the site sidebar on this page.
|
||||
hero:
|
||||
tagline: 基于 Astro / Starlight 搭建,少女施工中...
|
||||
image:
|
||||
file: ../../../assets/houston.webp
|
||||
actions:
|
||||
- text: 阅读概览
|
||||
link: /zh-cn/intro
|
||||
icon: right-arrow
|
||||
- text: 提交修改
|
||||
link: https://git.simba-robotics.com/PRAM/simba_docs
|
||||
- text: 访问 Simba 官网
|
||||
link: https://simba-robotics.com
|
||||
icon: external
|
||||
variant: minimal
|
||||
---
|
||||
|
||||
import { Card, CardGrid } from '@astrojs/starlight/components';
|
||||
|
||||
## Next steps
|
||||
|
||||
<CardGrid stagger>
|
||||
<Card title="Update content" icon="pencil">
|
||||
Edit `src/content/docs/index.mdx` to see this page change.
|
||||
</Card>
|
||||
<Card title="Change page layout" icon="document">
|
||||
Delete `template: splash` in `src/content/docs/index.mdx` to display a
|
||||
sidebar on this page.
|
||||
</Card>
|
||||
<Card title="Add new content" icon="add-document">
|
||||
Add Markdown or MDX files to `src/content/docs` to create new pages.
|
||||
</Card>
|
||||
<Card title="Configure your site" icon="setting">
|
||||
Edit your `sidebar` and other config in `astro.config.mjs`.
|
||||
</Card>
|
||||
<Card title="Read the docs" icon="open-book">
|
||||
Learn more in [the Starlight Docs](https://starlight.astro.build/).
|
||||
</Card>
|
||||
</CardGrid>
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: 示例教程
|
||||
description: 关于 RoboMaster 的昨天、今天和明天
|
||||
---
|
||||
|
||||
Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
|
||||
Writing a good guide requires thinking about what your users are trying to do.
|
||||
|
||||
## Further reading
|
||||
|
||||
- Read [about how-to guides](https://diataxis.fr/how-to-guides/) in the Diátaxis framework
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
title: 导论
|
||||
description: 视觉组同学需要学习的内容
|
||||
---
|
||||
|
||||
Guides lead a user through a specific task they want to accomplish, often with a sequence of steps.
|
||||
Writing a good guide requires thinking about what your users are trying to do.
|
||||
|
||||
## Further reading
|
||||
|
||||
- Read [about how-to guides](https://diataxis.fr/how-to-guides/) in the Diátaxis framework
|
||||
Reference in New Issue
Block a user