init
This commit is contained in:
parent
e03bfce413
commit
9b39bb62d6
@ -6,17 +6,22 @@ import starlight from '@astrojs/starlight';
|
||||
export default defineConfig({
|
||||
integrations: [
|
||||
starlight({
|
||||
title: 'My Docs',
|
||||
title: '笔记',
|
||||
locales: {
|
||||
root: {
|
||||
label: '简体中文',
|
||||
lang: 'zh-CN'
|
||||
},
|
||||
},
|
||||
social: {
|
||||
github: 'https://github.com/withastro/starlight',
|
||||
github: 'https://gitea.vviipp.vip/wcx',
|
||||
},
|
||||
sidebar: [
|
||||
{
|
||||
label: 'Guides',
|
||||
items: [
|
||||
// Each item here is one entry in the navigation menu.
|
||||
{ label: 'Example Guide', slug: 'guides/example' },
|
||||
],
|
||||
label: '概述',
|
||||
autogenerate: {
|
||||
directory: 'guides'
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Reference',
|
||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@ -10,6 +10,7 @@
|
||||
"dependencies": {
|
||||
"@astrojs/starlight": "^0.30.3",
|
||||
"astro": "^5.0.2",
|
||||
"blog": "file:",
|
||||
"sharp": "^0.32.5"
|
||||
}
|
||||
},
|
||||
@ -2225,6 +2226,10 @@
|
||||
"readable-stream": "^3.4.0"
|
||||
}
|
||||
},
|
||||
"node_modules/blog": {
|
||||
"resolved": "",
|
||||
"link": true
|
||||
},
|
||||
"node_modules/boolbase": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmmirror.com/boolbase/-/boolbase-1.0.0.tgz",
|
||||
|
@ -12,6 +12,7 @@
|
||||
"dependencies": {
|
||||
"@astrojs/starlight": "^0.30.3",
|
||||
"astro": "^5.0.2",
|
||||
"blog": "file:",
|
||||
"sharp": "^0.32.5"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,36 +1,17 @@
|
||||
---
|
||||
title: Welcome to Starlight
|
||||
title: AI 学习笔记
|
||||
description: Get started building your docs site with Starlight.
|
||||
template: splash
|
||||
hero:
|
||||
tagline: Congrats on setting up a new Starlight project!
|
||||
tagline: Pytorch, SKLearn, ...
|
||||
image:
|
||||
file: ../../assets/houston.webp
|
||||
actions:
|
||||
- text: Example Guide
|
||||
link: /guides/example/
|
||||
- text: 阅读笔记概述
|
||||
link: /guides/20241224-guides
|
||||
icon: right-arrow
|
||||
- text: Read the Starlight docs
|
||||
- text: 访问 Starlight
|
||||
link: https://starlight.astro.build
|
||||
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="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>
|
||||
|
Loading…
Reference in New Issue
Block a user