From 7a63a670f32d6323155403cba1b3101391c8599a Mon Sep 17 00:00:00 2001 From: rxliuli Date: Thu, 14 Dec 2023 19:22:34 +0900 Subject: [PATCH] chore: update build command --- .github/workflows/node.js.yml | 4 ++-- books/readme.md | 19 +++++++++++++++++++ mark-magic.config.yaml | 2 +- package.json | 1 + readme.md | 4 ---- tsconfig.json | 22 ---------------------- 6 files changed, 23 insertions(+), 29 deletions(-) delete mode 100644 tsconfig.json diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 7437f67..6799c92 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -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 diff --git a/books/readme.md b/books/readme.md index ac88ef3..4d9e1b9 100644 --- a/books/readme.md +++ b/books/readme.md @@ -1,7 +1,26 @@ # 珀耳塞福涅的华尔兹 +## 项目简介 + +> 原作 wiki: + +该项目主要是将作者的翻译打包为 epub 以便在手机和电子阅读器上阅读,同时避免国内网站删除、下架或不再维护网站而创建存档,目前也支持在线阅读,查看链接:。 + +- [中文翻译](https://archiveofourown.org/works/40690341) + +## 作品简介 + 小焰在无数次的失败轮回中越发绝望…… 绑架小圆并将她锁在地下室,直到魔女之夜结束,这听起来并不疯狂。 原作者:ErinPtah 原文链接(ao3): + +## 维护 + +初始化 + +1. 安装 nodejs 18 +2. `pnpm i` 安装依赖 +3. `pnpm build` 生成 epub 文件 +4. `pnpm docs-setup && pnpm docs-deploy` 发布网站 diff --git a/mark-magic.config.yaml b/mark-magic.config.yaml index 663187c..10aad10 100644 --- a/mark-magic.config.yaml +++ b/mark-magic.config.yaml @@ -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: diff --git a/package.json b/package.json index 9b72125..6f78adf 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/readme.md b/readme.md index 93d17fe..fd829be 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,3 @@ 2. `pnpm i` 安装依赖 3. `pnpm build` 生成 epub 文件 4. `pnpm docs-setup && pnpm docs-deploy` 发布网站 - -注意 - -目前仅修正拼写错误,翻译问题无力解决,希望有大佬帮忙重新校对一下。 diff --git a/tsconfig.json b/tsconfig.json deleted file mode 100644 index fc083c0..0000000 --- a/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "target": "ESNext", - "lib": ["ESNext"], - "outDir": "./dist", - "skipLibCheck": true, - "esModuleInterop": true, - "strict": true, - "module": "ESNext", - "moduleResolution": "Bundler", - "sourceMap": true, - "declaration": true, - "declarationMap": true - }, - "include": ["src"], - "typedocOptions": { - "entryPoints": ["src/index.ts"], - "out": "docs", - "readme": "README.md", - "gitRemote": "origin" - } -}