Skip to content

Commit 44d7512

Browse files
committed
Update to rspress
1 parent bae389d commit 44d7512

File tree

21 files changed

+1323
-326
lines changed

21 files changed

+1323
-326
lines changed

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Deploy to Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
pages: write
12+
id-token: write
13+
14+
concurrency:
15+
group: pages
16+
cancel-in-progress: false
17+
18+
jobs:
19+
# Build job
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
with:
26+
fetch-depth: 0 # Not needed if lastUpdated is not enabled
27+
- uses: oven-sh/setup-bun@v2
28+
with:
29+
bun-version: latest
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v5
32+
- name: Install dependencies
33+
run: bun install
34+
- name: Build with Rspress
35+
run: |
36+
bun run build
37+
- name: Upload artifact
38+
uses: actions/upload-pages-artifact@v3
39+
with:
40+
path: doc_build
41+
42+
# Deployment job
43+
deploy:
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
needs: build
48+
runs-on: ubuntu-latest
49+
name: Deploy
50+
steps:
51+
- name: Deploy to GitHub Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
.vscode
1+
# Local
2+
.DS_Store
3+
*.local
4+
*.log*
5+
6+
# Dist
7+
node_modules
8+
dist/
9+
doc_build/
10+
11+
# IDE
12+
.vscode/*
13+
!.vscode/extensions.json
14+
.idea
15+
*.backup

LICENSE

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

README.md

Lines changed: 18 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,29 @@
1-
# Chirpy Starter
1+
# rust-wiiu Homepage
22

3-
[![Gem Version](https://img.shields.io/gem/v/jekyll-theme-chirpy)][gem] 
4-
[![GitHub license](https://img.shields.io/github/license/cotes2020/chirpy-starter.svg?color=blue)][mit]
3+
## Setup
54

6-
When installing the [**Chirpy**][chirpy] theme through [RubyGems.org][gem], Jekyll can only read files in the folders
7-
`_data`, `_layouts`, `_includes`, `_sass` and `assets`, as well as a small part of options of the `_config.yml` file
8-
from the theme's gem. If you have ever installed this theme gem, you can use the command
9-
`bundle info --path jekyll-theme-chirpy` to locate these files.
5+
Install the dependencies:
106

11-
The Jekyll team claims that this is to leave the ball in the user’s court, but this also results in users not being
12-
able to enjoy the out-of-the-box experience when using feature-rich themes.
13-
14-
To fully use all the features of **Chirpy**, you need to copy the other critical files from the theme's gem to your
15-
Jekyll site. The following is a list of targets:
16-
17-
```shell
18-
.
19-
├── _config.yml
20-
├── _plugins
21-
├── _tabs
22-
└── index.html
7+
```bash
8+
bun install
239
```
2410

25-
To save you time, and also in case you lose some files while copying, we extract those files/configurations of the
26-
latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so that you can start writing in minutes.
27-
28-
## Usage
11+
## Get started
2912

30-
Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
13+
Start the dev server:
3114

32-
## Contributing
15+
```bash
16+
bun run dev
17+
```
3318

34-
This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback.
19+
Build the website for production:
3520

36-
## License
21+
```bash
22+
bun run build
23+
```
3724

38-
This work is published under [MIT][mit] License.
25+
Preview the production build locally:
3926

40-
[gem]: https://rubygems.org/gems/jekyll-theme-chirpy
41-
[chirpy]: https://github.com/cotes2020/jekyll-theme-chirpy/
42-
[CD]: https://en.wikipedia.org/wiki/Continuous_deployment
43-
[mit]: https://github.com/cotes2020/chirpy-starter/blob/master/LICENSE
27+
```bash
28+
bun run preview
29+
```

_config.yml

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

_layouts/default.html

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

_layouts/page.html

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

about.md

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

assets/css/style.css

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

0 commit comments

Comments
 (0)