-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.mjs
380 lines (329 loc) · 14 KB
/
configuration.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
export default {
common: {
author: "catpea <https://catpea.com>",
},
task: [
{
name: 'catpea.com',
configuration: {
// this will override settings for all dependencies in the task, changing the website name here will change it for all sub projects, be careful.
// title: 'Cat Pea University: Home of Furkies Purrkies and Westland Warrior',
},
dependencies: [
'westland-warrior',
'furkies-purrkies'
]
},
{
name: 'westland-warrior',
configuration: {
// this will override settings for all dependencies in the task, changing the website name here will change it for all sub projects, be careful.
subdir: '/warrior', // (endir) hosted in a sub-directory. This will rewrite all html file paths.
},
dependencies: [
'westland-warrior'
]
},
],
project: [
{
format: "v4",
theme: 'default',
name: "westland-warrior",
website: 'Westland Warrior: A Path To Greatness', // title
brand: 'Westland Warrior', // brand
title: "Westland Warrior",
subtitle: "A Path To Greatness",
description: "A small video book about the twisty little passages of growing up.",
tagline: 'Growing All The Way Up, Until We Become Great Beings',
//alert: 'Website hosting server seems to be having problems.',
icon: "collection-play",
order: "latest",
links: [
{
name: "Source Code",
icon: "link-45deg",
href: "https://github.com/catpea/westland-warrior",
},
// {
// name: "Mirror",
// icon: "link-45deg",
// href: "https://westland-valhalla.github.io/warrior/",
// },
{
name: "Bugs",
icon: "link-45deg",
href: "https://github.com/catpea/westland-warrior/issues",
},
],
network: [
{
name: "Cat Pea",
icon: "link-45deg",
href: "https://catpea.com",
},
],
templates: { // first one is the default one.
yaml: 'templates/westland-warrior-yaml',
},
transformers: [
{ name: "ensureDirs", options: {} },
{ name: "verifyIntegrity", options: {} },
{ name: "initializeRecord", options: {} },
{ name: "processYaml", options: {} },
{ name: "processMd", options: {} },
{ name: "processHtml", options: {} },
{ name: "ensureBootstrap", options: {} },
{ name: "ensurePrint", options: {} },
{ name: "ensureText", options: {} },
{ name: "ensureImages", options: {} },
{ name: "ensureLinks", options: {} },
{ name: 'validateRecordSchema', options: {} },
{ name: "saveRecord", options: {} },
{ name: "verifyCacheIntegrity", options: {} },
{ name: "downloadYoutubeThumbnails", options: {} },
{ name: "createCoverFromThumbnails", options: {} },
{ name: "resizeCoverImages", options: {} },
{ name: "verifyPresenceOfImages", options: {} },
],
generators: [
{ name: 'validateSoSchema', options:{} },
{ name: 'copyAttachments', options:{} },
{ name: "copyLocalLinks", options: {} },
{ name: "copyImages", options: {} },
{ name: "copyNarrations", options: {} },
{ name: "createNarrationList", options: {} },
{ name: "createMirror", options: {} },
{ name: "createWebsite", options: {} },
{ name: "rewritePaths", options: {} },
// { name: 'verifyWebsite', options:{} },
],
// list of projects required by this project, these will be built first.
dependencies: [],
// Objects to use for website
objects: ["dist/westland-warrior/westland-warrior.json"],
// Website mountpoints
mounts: [
{ directory: "dist/westland-warrior/image", mountpoint: "/image" },
{ directory: "dist/westland-warrior/audio", mountpoint: "/audio" },
],
},
{
format: "v4",
theme: 'default',
name: "furkies-purrkies",
title: "Furkies Purrkies",
brand: 'Cat Pea University',
website: 'Cat Pea University: Home of Furkies Purrkies and Westland Warrior',
subtitle: "Anthology of Inspirational Rhyme",
description: "Just another dang old Audio Book about wisdom and growing up.",
tagline: 'Home of Furkies Purrkies and Westland Warrior',
alertTitle: '92 Hour (4GB mp3) Version Uploaded To The Internet Archive',
alert: `Every once in a while I smush all the files and upload them to the Internet Archive as a kind of an Audio Book.
You can listen-to or download the 92 hour 4GB mp3 file at <a href="https://archive.org/details/912-poems" target="_blank">https://archive.org/details/912-poems</a>`,
//
// alert: `This is the new server setup, it is 4GB smaller, which should make it fast, and make github and vercel happy.
// The audio files are no longer served from github, they are served from catpea.org which is a new mirror and the new audio server.
//
// I expect things to crash, but there are no red flags anywhere nothing is broken. It is just an untested setup, and those tend to get ya.
//
// Just a reminder, when the audio files reached 4GB on github, github pages stoped working, and when they reached 4.5GB the backup host (vercel) stoped accepting changes, and I had to skip uploading older poem recordings, which was not cool because Squirty Squirrels is one of my best early poems.
//
// The <a href="https://www.youtube.com/channel/UC6Og8hy_iEgZutvp0SQmNzQ">YouTube Channel</a> is going strong.
//
// I will soon update <a href="https://catpea.onrender.com/">catpea.onrender.com</a> and <a href="https://catpea.pages.dev/">catpea.pages.dev</a> mirrors.
//
// `,
// alert: `I rented a tiny inexpensive server, I will use it for audio file storage. But I still need to set everything up.
// It seems like this won't cause any disruptions.
//
// Just incase, the following backup links should work OK for now:
// <a href="https://catpea.onrender.com/">catpea.onrender.com</a>,
// <a href="https://catpea.pages.dev/">catpea.pages.dev</a>.
// The <a href="https://www.youtube.com/channel/UC6Og8hy_iEgZutvp0SQmNzQ">YouTube Channel</a> is going strong.
//
// `,
// alertTitle: 'Systems Returning To Normal',
// alert: `
//
// Github had site wide problems. It wasn't just my 3.6 GB of poems causing deployemnt errors for me, eveyone was getting errors.
// But I had the same probem with github before, so I will monitor their service quality, for now, and make some informed decisions later.
//
// In case of other errors and delays, the following backup links should work without any trouble:
// <a href="https://catpea.vercel.app/">catpea.vercel.app</a>,
// <a href="https://catpea.onrender.com/">catpea.onrender.com</a>,
// <a href="https://catpea.pages.dev/">catpea.pages.dev</a>, and
// especially the <a href="https://www.youtube.com/channel/UC6Og8hy_iEgZutvp0SQmNzQ">YouTube Channel</a>.
// `,
// I guess their resource limits (a way to prevent individuals from using too much of their processing power)
// and the 3.6 GB website size (which takes a while to download, put-in-a-file and upload) combined to cause multiple failures.
// And in the process of trying to recover from those failires, more limits were hit, now more on the system or API level.
// Preventing the system that builds the website from building.
// In a word, their more advanced system kicked in as the website tried to re-build too many times (do too many things over and over).
//
//
// alert: `
// Possible hosting disruptions/delays ahead, <a href="http://catpea.com">catpea.com</a> will always be the most reliable way to access the site.
// The site is now at some 5.2GB (apparently, on my disk it only shows 2.6 GB), and <a href="https://www.youtube.com/watch?v=QyFcl_Fba-k">github pages</a> fail to publish sometimes.
// <a href="https://docs.github.com/en/github/managing-large-files/working-with-large-files/what-is-my-disk-quota">Github recommends 1GB websites with a 5GB hard limit</a>.
// To resolve this issue I am now testing a series of hosting companies, both as a primary host, and a mirror host.
// Here are the temporary addresses that I am using in my testing:
// <a href="https://catpea.vercel.app/">catpea.vercel.app</a> (via Vercel),
// <a href="https://catpea.onrender.com/">catpea.onrender.com</a> (via Render), and
// <a href="https://catpea.pages.dev/">catpea.pages.dev</a> (via Cloudflare). I am basically just looking for failures/annoyances over time.
// Please note that the <a href="https://www.youtube.com/channel/UC6Og8hy_iEgZutvp0SQmNzQ">YouTube Channel</a> has thus far been a reliable source of most recent audio poetry: <a href="https://www.youtube.com/channel/UC6Og8hy_iEgZutvp0SQmNzQ">Cat Pea University on YouTube</a>.
// (update: catpea.netlify.app via Netlify is no longer under consideration.)
// `,
icon: "earbuds",
order: "latest",
// Social Network Links For Website Plugin
links: [
{
name: "Vercel Mirror",
icon: "link-45deg",
href: "https://catpea.vercel.app/",
},
{
name: "Render Archive Mirror",
icon: "link-45deg",
href: "https://catpea.onrender.com/",
},
{
name: "Cloudflare Archive Mirror",
icon: "link-45deg",
href: "https://catpea.pages.dev/",
},
{
name: "YouTube Version",
icon: "link-45deg",
href: "https://www.youtube.com/playlist?list=PLOo-pqnffyOqsK6hf5tFwMqzvhogksrgW",
},
{
name: "Bitbucket Mirror",
icon: "link-45deg",
href: "https://catpea.bitbucket.io/",
},
{
name: "Github Source Code",
icon: "link-45deg",
href: "https://github.com/catpea/furkies-purrkies",
},
{
name: "Bugs",
icon: "link-45deg",
href: "https://github.com/catpea/furkies-purrkies/issues",
},
],
network: [
// Ew.
// {
// name: 'Urban Dictionary',
// icon: 'link-45deg',
// href: 'https://www.urbandictionary.com/author.php?author=Cat%20Pea',
// },
{
name: 'portfolio.jpg',
icon: 'link-45deg',
href: 'https://catpea.com/portfolio.jpg',
},
{
name: 'Hacker News',
icon: 'link-45deg',
href: 'https://news.ycombinator.com/user?id=catpea',
},
{
name: 'YouTube',
icon: 'link-45deg',
href: 'https://www.youtube.com/channel/UC6Og8hy_iEgZutvp0SQmNzQ',
},
{
name: 'Cat Pea Reddit',
icon: 'link-45deg',
href: 'https://www.reddit.com/user/catpea-com/',
},
{
name: 'Internet Archive',
icon: 'link-45deg',
href: 'https://archive.org/details/@catpea-com',
},
{
name: 'Wayback Machine',
icon: 'link-45deg',
href: 'https://web.archive.org/web/*/catpea.com',
},
{
name: 'Dribbble',
icon: 'link-45deg',
href: 'https://dribbble.com/catpea',
},
{
name: 'GitLab',
icon: 'link-45deg',
href: 'https://gitlab.com/catpea',
},
{
name: 'NPM',
icon: 'link-45deg',
href: 'https://www.npmjs.com/~catpea',
},
{
name: 'GitHub',
icon: 'link-45deg',
href: 'https://github.com/catpea',
},
],
templates: { // first one is the default one.
md: 'templates/furkies-purrkies-md',
html: 'templates/furkies-purrkies-html',
},
transformers: [
{ name: "ensureDirs", options: {} },
{ name: "verifyIntegrity", options: {} },
{ name: "initializeRecord", options: {} },
{ name: "processYaml", options: {} },
{ name: "processMd", options: {} },
{ name: "processHtml", options: {} },
{ name: "ensureBootstrap", options: {} },
{ name: "ensurePrint", options: {} },
{ name: "ensureText", options: {} },
{ name: "ensureImages", options: {} },
{ name: "ensureLinks", options: {} },
{ name: 'validateRecordSchema', options: {} },
{ name: "saveRecord", options: {} },
{ name: "verifyCacheIntegrity", options: {} },
{ name: "downloadYoutubeThumbnails", options: {} },
{ name: "createCoverFromThumbnails", options: {} },
{ name: "resizeCoverImages", options: {} },
{ name: "verifyPresenceOfImages", options: {} },
],
generators: [
{ name: 'validateSoSchema', options:{} },
{ name: 'copyAttachments', options:{} },
{ name: "copyLocalLinks", options: {} },
{ name: "copyImages", options: {} },
{ name: "copyNarrations", options: {} },
{ name: "createNarrationList", options: {} },
{ name: "createMirror", options: {} },
{ name: "createWebsite", options: {} },
{ name: "copyWebAudio", options: {} },
// { name: 'verifyWebsite', options:{} },
],
// list of projects required by this project, these will be built first.
dependencies: [
"westland-warrior"
],
// Objects to use for website
objects: [
"dist/westland-warrior/westland-warrior.json",
"dist/furkies-purrkies/furkies-purrkies.json",
],
// Website mountpoints
mounts: [
{ directory: "dist/westland-warrior/image", mountpoint: "/image" },
{ directory: "dist/westland-warrior/audio", mountpoint: "/audio" },
{ directory: "dist/furkies-purrkies/image", mountpoint: "/image" },
{ directory: "dist/furkies-purrkies/audio", mountpoint: "/audio" },
],
},
],
};