Credibility pass: drop dead deploy plumbing, reconcile docs

Remove the unused USER variable and the placeholder guard on a constant
DIR from deploy. Move the index's two inline styles into the stylesheet,
delete a selector that matched nothing, and use a plain apostrophe in
the description. Bring the README and CLAUDE.md file lists and
"Adding a build" steps in line with what the pages carry.

Credibility pass over the whole repo; the next one can scope from here.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Eric WagonerandClaude Fable 5.2 committed 2026-11-10 18:14:20 -05:00
1 parent 3228416b84
commit a7c04e5cb7
4 files changed
+19 -19

No files matched your search

+8 -4
View File
@@ -12,6 +12,7 @@ Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam an
- `index.html` - Site index (HTML/CSS in one file, no JavaScript). One `<a class="build">` card per build, newest first; the newest also has class `first` (full-width card). - `index.html` - Site index (HTML/CSS in one file, no JavaScript). One `<a class="build">` card per build, newest first; the newest also has class `first` (full-width card).
- `og.png` - OpenGraph image for the index, 1200 x 630 - `og.png` - OpenGraph image for the index, 1200 x 630
- `favicon.svg` - Icon shared by every page
- `deploy` - Rsync deployment script - `deploy` - Rsync deployment script
- `<build>/` - One folder per build, self-contained: `index.html`, `img/`, `dl/` - `<build>/` - One folder per build, self-contained: `index.html`, `img/`, `dl/`
- `greenman/` - Green Man mask - `greenman/` - Green Man mask
@@ -27,9 +28,12 @@ Kestrel's Builds is a static site of craft build write-ups. Builds vary (foam an
## Adding a build ## Adding a build
1. Create `<name>/index.html` with its `img/` and `dl/`. `README.md` has the full steps. In short:
2. Add a card to the top of the list in the top-level `index.html`.
3. `./deploy -n`, then `./deploy`. 1. Create `<name>/index.html` with its `img/` and `dl/`, the two back links, the favicon link, and its own description, canonical and Open Graph tags with an `og-image.jpg`.
2. Add a card to the top of the list in the top-level `index.html` and move the class `first` to it.
3. Retake `og.png`.
4. `./deploy -n`, then `./deploy`.
## Development ## Development
@@ -49,7 +53,7 @@ The `deploy` script uses rsync to push to YunoHost (a My Webapp static app, like
``` ```
**Important deployment notes:** **Important deployment notes:**
- `DIR` in `deploy` is `/var/www/my_webapp__3/www`. The script refuses to run if it is ever reset to the `my_webapp__N` placeholder. - `DIR` in `deploy` is `/var/www/my_webapp__3/www`, this app's web root on the server.
- rsync runs with `--delete`: anything on the server that is not in this folder is removed. Do not keep server-only files in the web root. - rsync runs with `--delete`: anything on the server that is not in this folder is removed. Do not keep server-only files in the web root.
- `HOST=social` is an SSH config alias, the same one pantry uses. - `HOST=social` is an SSH config alias, the same one pantry uses.
+6 -3
View File
@@ -10,6 +10,7 @@ A static site with no build step. Each build is a self-contained folder; the top
``` ```
index.html - Site index: one card per build index.html - Site index: one card per build
favicon.svg - Icon shared by every page
og.png - OpenGraph image for the index (1200 x 630); each build keeps its own og-image.jpg og.png - OpenGraph image for the index (1200 x 630); each build keeps its own og-image.jpg
deploy - Deployment script (rsync to server) deploy - Deployment script (rsync to server)
greenman/ - Green Man mask greenman/ - Green Man mask
@@ -23,7 +24,9 @@ greenman/ - Green Man mask
1. Make a folder for it, named in lowercase with no spaces (`greenman`, `atompunk`). Put its page at `<folder>/index.html`, with its images and downloads inside the folder so its links stay relative. 1. Make a folder for it, named in lowercase with no spaces (`greenman`, `atompunk`). Put its page at `<folder>/index.html`, with its images and downloads inside the folder so its links stay relative.
2. In the top-level `index.html`, copy an `<a class="build">` card to the top of the list and change the link, image, alt text, title and the three lines of text. The newest build carries the extra class `first`, which gives it the full-width card; take `first` off the one it replaces. Card images are cropped to fit, so set `object-position` for the new image as `.greenman` does. 2. In the top-level `index.html`, copy an `<a class="build">` card to the top of the list and change the link, image, alt text, title and the three lines of text. The newest build carries the extra class `first`, which gives it the full-width card; take `first` off the one it replaces. Card images are cropped to fit, so set `object-position` for the new image as `.greenman` does.
3. Give the new build's page a link back to the index, as `greenman/index.html` has at its top and bottom: `<a href="../">← Kestrel's Builds</a>`. 3. Give the new build's page a link back to the index, as `greenman/index.html` has at its top and bottom: `<a href="../">← Kestrel's Builds</a>`.
4. Run `./deploy -n` to check what will be uploaded, then `./deploy`. 4. In the page's head, link the shared icon (`<link rel="icon" href="../favicon.svg">`) and add its own description, canonical and Open Graph tags. Its share image is a 1200 x 630 `og-image.jpg` in the build's folder.
5. Retake `og.png`, a 1200 x 630 screenshot of the top of the index, since the first card has changed.
6. Run `./deploy -n` to check what will be uploaded, then `./deploy`.
## Local preview ## Local preview
@@ -55,7 +58,7 @@ Each My Webapp gets a numbered folder on the server. Find this one:
ssh social 'ls -d /var/www/my_webapp*' ssh social 'ls -d /var/www/my_webapp*'
``` ```
Set `DIR` in `deploy` to that folder's `www` directory, which for this site is `/var/www/my_webapp__3/www` (already set). Set `DIR` in `deploy` to that folder's `www` directory. For this site it is `/var/www/my_webapp__3/www`.
### 3. Deploy ### 3. Deploy
@@ -64,4 +67,4 @@ Set `DIR` in `deploy` to that folder's `www` directory, which for this site is `
./deploy ./deploy
``` ```
The script rsyncs this folder to the server and deletes anything there that is no longer here. It skips the project's own files (`deploy`, `README.md`, `CLAUDE.md`, `.git`). The script rsyncs this folder to the server and deletes anything there that is no longer here. It skips the project's own files: the script itself, the two Markdown docs, and git and editor files.
-8
View File
@@ -2,17 +2,9 @@
# Deploy the builds site to YunoHost (My Webapp, static). # Deploy the builds site to YunoHost (My Webapp, static).
# ./deploy push the site # ./deploy push the site
# ./deploy -n dry run: show what would change, change nothing # ./deploy -n dry run: show what would change, change nothing
USER=admin
HOST=social HOST=social
DIR=/var/www/my_webapp__3/www DIR=/var/www/my_webapp__3/www
case "$DIR" in
*my_webapp__N/*)
echo "Set DIR in ./deploy first: replace my_webapp__N with this app's folder under /var/www on the server."
echo " ssh ${HOST} 'ls -d /var/www/my_webapp*'"
exit 1 ;;
esac
DRY="" DRY=""
[ "$1" = "-n" ] && DRY="--dry-run" && echo "Dry run: nothing will be changed." [ "$1" = "-n" ] && DRY="--dry-run" && echo "Dry run: nothing will be changed."
+5 -4
View File
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kestrel's Builds</title> <title>Kestrel's Builds</title>
<link rel="icon" href="favicon.svg"> <link rel="icon" href="favicon.svg">
<meta name="description" content="Things I&#39;ve made, written up so you can make them too. Each build comes with a guide and whatever files the project needs, free to download."> <meta name="description" content="Things I've made, written up so you can make them too. Each build comes with a guide and whatever files the project needs, free to download.">
<link rel="canonical" href="https://builds.kestrelsnest.social/"> <link rel="canonical" href="https://builds.kestrelsnest.social/">
<meta property="og:type" content="website"> <meta property="og:type" content="website">
<meta property="og:title" content="Kestrel's Builds"> <meta property="og:title" content="Kestrel's Builds">
@@ -41,6 +41,7 @@
} }
a { color: var(--gold); text-decoration: none; } a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; } a:hover { text-decoration: underline; }
.nowrap { white-space: nowrap; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); } .wrap { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); }
header.mast { padding: 56px 0 28px; text-align: center; } header.mast { padding: 56px 0 28px; text-align: center; }
@@ -83,10 +84,10 @@
section { margin-top: 56px; } section { margin-top: 56px; }
section h2 { font-size: 1.6rem; font-weight: 400; margin: 0 0 12px; } section h2 { font-size: 1.6rem; font-weight: 400; margin: 0 0 12px; }
section p + h2 { margin-top: 28px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; } .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; gap: 28px; } } @media (max-width: 720px) { .cols { grid-template-columns: 1fr; gap: 28px; } }
section p { margin: 0 0 12px; color: var(--bone-dim); } section p { margin: 0 0 12px; color: var(--bone-dim); }
section p b { color: var(--bone); font-weight: 500; }
ul.how { margin: 0; padding-left: 1.2em; color: var(--bone-dim); } ul.how { margin: 0; padding-left: 1.2em; color: var(--bone-dim); }
ul.how li { margin-bottom: 8px; } ul.how li { margin-bottom: 8px; }
ul.how b { color: var(--bone); font-weight: 500; } ul.how b { color: var(--bone); font-weight: 500; }
@@ -128,8 +129,8 @@
<h2>Who makes these</h2> <h2>Who makes these</h2>
<p>I am Eric, and I make these at a workbench in Athens, Georgia. Each one is something I built and wore or used first. The write-up came afterwards, once I knew what worked.</p> <p>I am Eric, and I make these at a workbench in Athens, Georgia. Each one is something I built and wore or used first. The write-up came afterwards, once I knew what worked.</p>
<p>I also keep a hall of free board games at <a href="https://gamehall.kestrelsnest.social">Kestrel's Hall</a>, and I roost at <a href="https://blog.kestrelsnest.social">blog.kestrelsnest.social</a>.</p> <p>I also keep a hall of free board games at <a href="https://gamehall.kestrelsnest.social">Kestrel's Hall</a>, and I roost at <a href="https://blog.kestrelsnest.social">blog.kestrelsnest.social</a>.</p>
<h2 style="margin-top:28px">Tip jar</h2> <h2>Tip jar</h2>
<p>The builds are free and will stay free. Materials and filament do add up, though, and anyone who wants to chip in toward them can do so at <a href="https://ko-fi.com/kestrelsnest" style="white-space:nowrap">ko-fi.com/kestrelsnest</a>. Chipping in unlocks nothing, and every build is the same for everyone.</p> <p>The builds are free and will stay free. Materials and filament do add up, though, and anyone who wants to chip in toward them can do so at <a class="nowrap" href="https://ko-fi.com/kestrelsnest">ko-fi.com/kestrelsnest</a>. Chipping in unlocks nothing, and every build is the same for everyone.</p>
</div> </div>
</section> </section>