Skip to content

Commit 2d8914f

Browse files
committed
fix build ci
1 parent be9052a commit 2d8914f

File tree

2 files changed

+93
-94
lines changed

2 files changed

+93
-94
lines changed

.github/workflows/build-book.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
steps:
1212
- name: Set current date as env variable
1313
run: echo "NOW=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
14-
- uses: browser-actions/setup-chrome@latest
1514
- uses: actions/checkout@v3
1615
- uses: denoland/setup-deno@v1
1716
with:

book/build.ts

Lines changed: 93 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -98,99 +98,99 @@ async function main() {
9898
}
9999

100100
const books: Record<string, Book> = {
101-
// "owen-blog": {
102-
// tags: ["Random Book"],
103-
// chapters: [],
104-
// introduction: {
105-
// title: "简介",
106-
// path: "README.md",
107-
// },
108-
// summary: [
109-
// {
110-
// title: "随笔",
111-
// path: "random-intro.md",
112-
// rules: [
113-
// {
114-
// condition: "contains",
115-
// key: "category",
116-
// value: "Random",
117-
// },
118-
// ],
119-
// },
120-
// {
121-
// title: "短想法",
122-
// path: "thoughts.md",
123-
// },
124-
// {
125-
// title: "笔记",
126-
// path: "notes-intro.md",
127-
// rules: [
128-
// {
129-
// condition: "contains",
130-
// key: "category",
131-
// value: "Notes",
132-
// },
133-
// {
134-
// condition: "notContains",
135-
// key: "relativePath",
136-
// value: "content/thoughts.md",
137-
// },
138-
// {
139-
// condition: "notContains",
140-
// key: "relativePath",
141-
// value: "content/pages/now.md",
142-
// },
143-
// {
144-
// condition: "notContains",
145-
// key: "relativePath",
146-
// value: "content/pages/about.md",
147-
// },
148-
// ],
149-
// },
150-
// {
151-
// title: "读书笔记",
152-
// path: "books-intro.md",
153-
// rules: [
154-
// {
155-
// condition: "contains",
156-
// key: "category",
157-
// value: "Books",
158-
// },
159-
// ],
160-
// },
161-
// {
162-
// title: "文章笔记",
163-
// path: "articles-intro.md",
164-
// rules: [
165-
// {
166-
// condition: "contains",
167-
// key: "category",
168-
// value: "Articles",
169-
// },
170-
// ],
171-
// },
172-
// {
173-
// title: "关于我",
174-
// path: "pages/about.md",
175-
// subSections: [
176-
// {
177-
// title: "现在",
178-
// path: "pages/now.md",
179-
// },
180-
// ],
181-
// },
182-
// ],
183-
// config: {
184-
// book: {
185-
// "title": "Owen博客精选",
186-
// "description": "Owen的博客电子书版",
187-
// "src": "content",
188-
// "language": "zh",
189-
// "authors": ["Owen Young"],
190-
// },
191-
// output: outputOptions,
192-
// },
193-
// },
101+
"owen-blog": {
102+
tags: ["Random Book"],
103+
chapters: [],
104+
introduction: {
105+
title: "简介",
106+
path: "README.md",
107+
},
108+
summary: [
109+
{
110+
title: "随笔",
111+
path: "random-intro.md",
112+
rules: [
113+
{
114+
condition: "contains",
115+
key: "category",
116+
value: "Random",
117+
},
118+
],
119+
},
120+
{
121+
title: "短想法",
122+
path: "thoughts.md",
123+
},
124+
{
125+
title: "笔记",
126+
path: "notes-intro.md",
127+
rules: [
128+
{
129+
condition: "contains",
130+
key: "category",
131+
value: "Notes",
132+
},
133+
{
134+
condition: "notContains",
135+
key: "relativePath",
136+
value: "content/thoughts.md",
137+
},
138+
{
139+
condition: "notContains",
140+
key: "relativePath",
141+
value: "content/pages/now.md",
142+
},
143+
{
144+
condition: "notContains",
145+
key: "relativePath",
146+
value: "content/pages/about.md",
147+
},
148+
],
149+
},
150+
{
151+
title: "读书笔记",
152+
path: "books-intro.md",
153+
rules: [
154+
{
155+
condition: "contains",
156+
key: "category",
157+
value: "Books",
158+
},
159+
],
160+
},
161+
{
162+
title: "文章笔记",
163+
path: "articles-intro.md",
164+
rules: [
165+
{
166+
condition: "contains",
167+
key: "category",
168+
value: "Articles",
169+
},
170+
],
171+
},
172+
{
173+
title: "关于我",
174+
path: "pages/about.md",
175+
subSections: [
176+
{
177+
title: "现在",
178+
path: "pages/now.md",
179+
},
180+
],
181+
},
182+
],
183+
config: {
184+
book: {
185+
"title": "Owen博客精选",
186+
"description": "Owen的博客电子书版",
187+
"src": "content",
188+
"language": "zh",
189+
"authors": ["Owen Young"],
190+
},
191+
output: outputOptions,
192+
},
193+
},
194194
"owen-blog-archive": {
195195
tags: [],
196196
chapters: [],

0 commit comments

Comments
 (0)