Skip to content

Commit

Permalink
chore: update build command
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli committed Dec 14, 2023
1 parent dd348c0 commit 7a63a67
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ jobs:
node-version: '20'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm docs-build
- run: pnpm build-docs

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
publish_dir: ./dist/docs
19 changes: 19 additions & 0 deletions books/readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,26 @@
# 珀耳塞福涅的华尔兹

## 项目简介

> 原作 wiki: <https://archiveofourown.org/works/577310>
该项目主要是将作者的翻译打包为 epub 以便在手机和电子阅读器上阅读,同时避免国内网站删除、下架或不再维护网站而创建存档,目前也支持在线阅读,查看链接:<https://persephone-s-waltz.liuli.moe/>

- [中文翻译](https://archiveofourown.org/works/40690341)

## 作品简介

小焰在无数次的失败轮回中越发绝望…… 绑架小圆并将她锁在地下室,直到魔女之夜结束,这听起来并不疯狂。

原作者:ErinPtah

原文链接(ao3):<https://archiveofourown.org/works/577310/chapters/1035515>

## 维护

初始化

1. 安装 nodejs 18 <https://nodejs.org/>
2. `pnpm i` 安装依赖
3. `pnpm build` 生成 epub 文件
4. `pnpm docs-setup && pnpm docs-deploy` 发布网站
2 changes: 1 addition & 1 deletion mark-magic.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ generate:
publisher: rxliuli
language: zh-CN
cover: ./books/assets/cover.jpeg
- name: web
- name: docs
input:
name: '@mark-magic/plugin-local'
config:
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"version": "1.0.0",
"scripts": {
"build": "mark-magic && jszip-cli add dist/epub -o dist/books.zip -f",
"build-docs": "mark-magic --task docs",
"deploy": "gh-pages -d ./dist/docs --dotfiles"
},
"devDependencies": {
Expand Down
4 changes: 0 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@
2. `pnpm i` 安装依赖
3. `pnpm build` 生成 epub 文件
4. `pnpm docs-setup && pnpm docs-deploy` 发布网站

注意

目前仅修正拼写错误,翻译问题无力解决,希望有大佬帮忙重新校对一下。
22 changes: 0 additions & 22 deletions tsconfig.json

This file was deleted.

0 comments on commit 7a63a67

Please sign in to comment.