chore: update readme (#300)

* chore: update readme https://github.com/saicaca/fuwari/issues/210

* docs: update README with additional language links and usage instructions
This commit is contained in:
Katsuyuki Karasawa
2025-05-18 11:46:03 +09:00
committed by GitHub
parent e52558ab0c
commit cd7cd683fc
6 changed files with 193 additions and 5 deletions

View File

@@ -20,7 +20,37 @@
- [x] 搜索
- [x] 文内目录
## 🚀 使用方法
## 👀 要求
- Node.js <= 22
- pnpm <= 9
## 🚀 使用方法 1
使用 [create-fuwari](https://github.com/L4Ph/create-fuwari) 在本地初始化项目。
```sh
# npm
npm create fuwari@latest
# yarn
yarn create fuwari
# pnpm
pnpm create fuwari@latest
# bun
bun create fuwari@latest
# deno
deno run -A npm:create-fuwari@latest
```
1. 通过配置文件 `src/config.ts` 自定义博客
2. 执行 `pnpm new-post <filename>` 创建新文章,并在 `src/content/posts/` 目录中编辑
3. 参考[官方指南](https://docs.astro.build/zh-cn/guides/deploy/)将博客部署至 Vercel, Netlify, GitHub Pages 等;部署前需编辑 `astro.config.mjs` 中的站点设置。
## 🚀 使用方法 2
1. 使用此模板[生成新仓库](https://github.com/saicaca/fuwari/generate)或 Fork 此仓库
2. 进行本地开发Clone 新的仓库,执行 `pnpm install``pnpm add sharp` 以安装依赖