Skip to content

Commit c8541f9

Browse files
CopilotSoonIter
andauthored
feat: replace rspress examples with v2 scaffolds
Agent-Logs-Url: https://github.com/rstackjs/rstack-examples/sessions/2a336486-a4eb-439c-8a87-2d6ef6a5942d Co-authored-by: SoonIter <79413249+SoonIter@users.noreply.github.com>
1 parent aa3558d commit c8541f9

Some content is hidden

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

51 files changed

+618
-328
lines changed

rspress/basic/.gitignore

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,14 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
95

6+
# Dist
107
node_modules
11-
dist
12-
dist-ssr
13-
*.local
8+
dist/
9+
doc_build/
1410

15-
# Editor directories and files
11+
# IDE
1612
.vscode/*
1713
!.vscode/extensions.json
1814
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
25-
doc_build

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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["introduction", "getting-started"]

0 commit comments

Comments
 (0)