Move build process to external app

This commit is contained in:
Eric Woodward 2023-08-09 22:05:16 -04:00
parent b09d183a1c
commit 1bec5c0259
13 changed files with 73 additions and 1734 deletions

1690
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,35 +1,18 @@
{
"name": "iew-site-builder",
"version": "0.9.6",
"version": "0.9.7",
"description": "",
"main": "index.js",
"scripts": {
"build": "node app.js build",
"build:prod": "NODE_ENV=production node app.js build",
"lint:ejs": "npx ejs-lint src/layout",
"serve": "node app.js serve",
"watch": "node app.js watch"
},
"keywords": [],
"author": "Eric Woodward (https://www.itsericwoodward.com)",
"license": "MIT",
"dependencies": {
"chalk": "^4.1.2",
"chokidar": "^3.4.3",
"dotenv": "^16.0.1",
"highlight.js": "^11.3.1",
"json5": "^2.1.3",
"markdown-it": "^13.0.1",
"markdown-it-emoji": "^2.0.0",
"markdown-it-footnote": "^3.0.3",
"network-address": "^1.1.2",
"serve-handler": "^6.1.3"
},
"devDependencies": {
"ejs": "^3.1.5",
"front-matter": "^4.0.2",
"fs-extra": "^10.0.0",
"glob": "^8.0.3",
"serve": "^14.1.2",
"yargs": "^17.3.1"
}
"dependencies": {},
"devDependencies": {}
}

View File

@ -1,41 +0,0 @@
{
"name": "Its Eric Woodward! (dotcom)",
"icons": [
{
"src": "\/images\/favicons\/android-icon-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "\/images\/favicons\/android-icon-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "\/images\/favicons\/android-icon-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "\/images\/favicons\/android-icon-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "\/images\/favicons\/android-icon-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "\/images\/favicons\/android-icon-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@ -91,6 +91,28 @@ figure {
text-align: center;
}
/* for figure images */
figure[data-type="image"] a {
display: inline-block;
padding: .5rem .5rem .3rem;
}
figure[data-type="image"] img {
display: inline-block;
margin: auto;
}
/* for figure images */
figure[data-type="video"] {
margin-top: .5rem;
padding: .5rem;
}
figure[data-type="video"] video {
width: 100%;
}
h1 {
color: #25baba;
font-size: 2em;

View File

@ -0,0 +1,27 @@
---
title: Case In Point
content_type: journal
date_pub: 2023-08-06T13:01:00-04:00
description: A short post about the recent site outage and the new fan I acquired for the server.
tags: computers web server devops
---
Last Sunday evening, quite out of the blue, the web server that hosts this site started making a horrible whining noise. A quick finger-check determined it was the fan making the noise. I tried to clean the unit (and the Pi4 beneath it) with some compressed air, but alas, the damage to the fan had been done.
![My Pi4 webserver, _heimdallr_, in its original glory.](/media/images/2fc5bcd2ec302416982f9f6d0a3312cfcf2e86f93d0015156ff0614356d413c4.jpg "Diagonal view of the webserver as it originally was")
![Top view of _heimdallr_, so you can see both the pins and the fan that would fail.](/media/images/f55168710441d47cc0148a1c1bef48b702aa43d0f5e32ed0a0545200fd3b3d7a.jpg "Top view of the webserver as it originally was")
![A slightly-blurry bottom view of _heimdallr_, from back when it had 4 screws AND 4 little rubber feet.](/media/images/465407dfbd54e8173dbb278c74af603f00e1e6071d840ea58221d56ee07be0ad.jpg "Bottom view of the webserver as it originally was")
Thanks to the magical delivery gnomes, a replacement case arrived the very next day (well, technically it was the following night, which was unfortunately about 2 hours too late for Monday Night's session of [Planar Vagabond](http://www.planarvagabond.com/), but close enough). So, Tuesday morning, I started swapping the old case for the new one, and 15 minutes later, it was back online.
After some looking around, I went with a ["ICE Tower Cooler" by GeeekPi](https://www.amazon.com/dp/B07V35SXMC?psc=1&ref=ppx_yo2ov_dt_b_product_details). It was relatively inexpensive, easy enough to put together, and the LED in the fan adds a distinctive, #cyberpunk vibe to the machine (particularly compared to the somewhat professional-but-pedestrian original case).
![The updated _heimdallr_, showing off its new LED powers.](/media/images/c2c12cc0458047540142092680a14f6208cae651c2e1a4e263ad9e642dd88cf9.jpg "Vertically diagonal view of the webserver in its new case")
![Another view of the updated _heimdallr_ and its color-changing fan.](/media/images/70ff6cbadd6715f7453bfa041d05b5c3cd3c1fb407940343c9e68b0b829881c5.jpg "Horizontally diagonal view of the webserver in its new case")
![Rear-view of the updated _heimdallr_, proving it looks just as cool from the back.](/media/images/373599bf2e8ba836007e274e07131da5a54a23c3a1bfd3ebca6a75cccb676008.jpg "Rear-view of the webserver in its new case")
![Video of the updated _heimdallr_ booting up.](/media/video/f516290d1fd19eda6ca06134c3f8d7691b784db7771aa7b0a8d46665c281b7fb.mp4 "Video of the webserver powering on in its new case")

View File

@ -1,5 +1,5 @@
{
"name": "App",
"name": "<%= site.title -%>",
"icons": [
{
"src": "\/images\/favicons\/android-icon-36x36.png",