Skip to content

Commit 405fdf5

Browse files
CopilotSoonIter
andauthored
feat(rspress): upgrade Rspress examples to v2 (#438)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: SoonIter <79413249+SoonIter@users.noreply.github.com> Co-authored-by: sunyiteng <sunyiteng@bytedance.com>
1 parent c7140b6 commit 405fdf5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+840
-1530
lines changed

pnpm-lock.yaml

Lines changed: 229 additions & 1190 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rspress/basic/.gitignore

Lines changed: 0 additions & 25 deletions
This file was deleted.

rspress/basic/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Rspress website
2+
3+
## Setup
4+
5+
Install the dependencies:
6+
7+
```bash
8+
npm install
9+
```
10+
11+
## Get started
12+
13+
Start the dev server:
14+
15+
```bash
16+
npm run dev
17+
```
18+
19+
Build the website for production:
20+
21+
```bash
22+
npm run build
23+
```
24+
25+
Preview the production build locally:
26+
27+
```bash
28+
npm run preview
29+
```

rspress/basic/docs/_meta.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

rspress/basic/docs/_nav.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"text": "Guide",
4+
"link": "/guide/start/introduction",
5+
"activeMatch": "/guide/"
6+
},
7+
{
8+
"text": "API",
9+
"link": "/api/",
10+
"activeMatch": "/api/"
11+
},
12+
{
13+
"text": "Document",
14+
"link": "https://rspress.rs/"
15+
}
16+
]

rspress/basic/docs/api/_meta.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["index", "commands"]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Commands
2+
3+
## dev
4+
5+
## build
6+
7+
## preview

rspress/basic/docs/api/index.mdx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
title: API Overview
3+
overview: true
4+
---
5+
6+
This is an API Overview page which outlines all the available APIs.
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,12 @@
1-
["index"]
1+
[
2+
{
3+
"type": "dir-section-header",
4+
"name": "start",
5+
"label": "Getting Started"
6+
},
7+
{
8+
"type": "dir-section-header",
9+
"name": "use-mdx",
10+
"label": "Markdown & MDX"
11+
}
12+
]

rspress/basic/docs/guide/index.md

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)