forked from nixcn/nixcn-web
feat(docs/index): version 1
- Removed default content from Starlight template
- Removed cards (as they don't seem necessary now - wait for more
content)
- Updated title, description, tagline and hero image
- Updated actions:
- Primary action: Checkout meetup #2 guide
- Secondary action: Join the meetup telegram group
- Added English variant of the index page
Signed-off-by: Noa Virellia <noa@requiem.garden>
This commit is contained in:
17
src/content/docs/en/index.mdx
Normal file
17
src/content/docs/en/index.mdx
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
title: "Nix CN"
|
||||||
|
description: Explore a reproducible future with the Nix CN community
|
||||||
|
template: splash
|
||||||
|
hero:
|
||||||
|
tagline: Explore a reproducible future with the Nix CN community
|
||||||
|
image:
|
||||||
|
file: ../../../assets/nix-flake-logo.svg
|
||||||
|
actions:
|
||||||
|
- text: "Meetup #2 Attendee Guide"
|
||||||
|
link: /en/meetup-2-guide
|
||||||
|
icon: right-arrow
|
||||||
|
- text: Join the event group
|
||||||
|
link: https://t.me/nixcnmeetup
|
||||||
|
icon: external
|
||||||
|
variant: minimal
|
||||||
|
---
|
||||||
@@ -1,40 +1,17 @@
|
|||||||
---
|
---
|
||||||
title: Welcome to Starlight
|
title: "Nix CN"
|
||||||
description: Get started building your docs site with Starlight.
|
description: 与 Nix 中文社群一起探索可复现的未来
|
||||||
template: splash # Remove or comment out this line to display the site sidebar on this page.
|
template: splash
|
||||||
hero:
|
hero:
|
||||||
tagline: Congrats on setting up a new Starlight project!
|
tagline: 与 Nix 中文社群一起探索可复现的未来
|
||||||
image:
|
image:
|
||||||
file: ../../assets/houston.webp
|
file: ../../assets/nix-flake-logo.svg
|
||||||
actions:
|
actions:
|
||||||
- text: Example Guide
|
- text: "Meetup #2 参会指南"
|
||||||
link: /guides/example/
|
link: /meetup-2-guide
|
||||||
icon: right-arrow
|
icon: right-arrow
|
||||||
- text: Read the Starlight docs
|
- text: 加入活动群组
|
||||||
link: https://starlight.astro.build
|
link: https://t.me/nixcnmeetup
|
||||||
icon: external
|
icon: external
|
||||||
variant: minimal
|
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>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user