A space for stories about AI, our products, the AI SDLC, enterprise AI, performance, Rust, Go, and more
The site expects Ruby 3.3.5, pinned in .ruby-version and .tool-versions. With mise:
mise install # installs Ruby 3.3.5
bundle installWith rbenv/asdf install Ruby 3.3.5 first, then run bundle install. Check with
ruby -v, which should print ruby 3.3.5.
bundle exec jekyll sThe site opens at http://127.0.0.1:4000 (the terminal prints
Server address: http://127.0.0.1:4000/). Stop it with Ctrl+C.
jekyll: command not found: Jekyll is installed into the bundle, not on yourPATH. Always prefix the command withbundle exec(bundle exec jekyll s), never run barejekyll s.bundle: command not foundor a Ruby version error frombundle install: the site expects Ruby 3.3.5 - run the setup in Install dependencies above, then re-runbundle install.Could not find gem .../Bundler::GemNotFound: runbundle installagain in the repository root; it readsGemfile.lockand installs the exact versions the build uses.
Run the same checks the build relies on before opening a pull request:
bash tools/test.shBefore building, the script checks every post under _posts/ (subfolders
included) and prints one summary line per check:
-
tag-case-duplicates: the build fails if two posts spell the same tag with different letter case (e.g.Azuritevsazurite), since Jekyll would drop one tag page. -
category-case-duplicates: the build fails if two posts use the same category with different letter case (e.g.Drawiovsdrawio), since Jekyll would drop one category page the same way a tag-case collision drops a tag page. -
tag-synonym-groups: the build fails if more thanTAG_SYNONYM_ALLOWEDpost tags use a known synonym of a canonical tag (e.g..NET/net8instead ofdotnet, orC#instead ofcsharp), since a synonym splits a topic across two tag pages instead of one. SeeTAG_SYNONYM_GROUPSintools/test.shfor the canonical groups. -
description-coverage: the build fails if any post lacks a front-matterdescription:or its description is outside 50-160 characters. When all posts pass it printsdescription-coverage: all <total> posts have a front-matter description of 50-160 characters (...). -
image-coverage: reports posts without an image (front-matterimage:, Markdown![or<img). Printsimage-coverage: <count>/<total> posts without image (...)followed by the offending post paths, indented, if any.IMAGE_GATE_CUTOFFis resolved to today's date on every run (date +%F, intools/test.sh); posts dated on or before today are grandfathered, so the build fails only for a post dated after today (a scheduled post) that has no image. -
alt-coverage: fails the build when the count is above 0. Printsalt-coverage: <count>/<with-image> posts with a front-matter image but no alt text (...)followed by the offending post paths, where<with-image>is the number of posts that have a front-matterimage:key. -
body-image-coverage: fails the build for posts dated after 2026-05-11 (BODY_IMAGE_GATE_CUTOFF); older posts are grandfathered. Printsbody-image-coverage: <count>/<total> posts without an inline ![...] image in the body (...)followed by the offending post paths; a front-matterimage:alone does not count, only a Markdown image after the closing---. -
image-link-coverage: the build fails if any post's Markdown image () or front-matterimage:/path:value that starts with/orassets/points at a file that does not exist under the repo root, since the image would render broken for readers. Printsimage-link-coverage: <count>/<total> broken (...)and, on failure, the offending post and path. -
alt-duplicate-coverage: informational only, never fails the build. Printsalt-duplicate-coverage: <count> alt text values repeated verbatim across more than one post (...)followed by each repeated (trimmed, case-folded) alt text value and the posts that share it, since identical alt text on different images loses its accessibility value for screen reader users. -
body-image-alt-length: the build fails if an inline body image in a post dated after 2026-10-25 has alt text shorter thanALT_MIN_LENGTH(20) characters; older posts are grandfathered. Printsbody-image-alt-length: <count> inline body image(s) with alt text under 20 characters (...). -
folder-categories: the build fails if a post under_posts/<Folder>/does not list the lowercased folder name (e.g.performancefor_posts/Performance/) in its front-mattercategories, since the post would be missing from the category page its folder promises. Posts directly under_posts/are not checked. When all posts pass it printsfolder-categories: every post under _posts/<Folder>/ lists its lowercased folder name in 'categories'. -
date-match-coverage: the build fails if a post's filename date (the first 10 characters,YYYY-MM-DD) differs from its front-matterdate:, since that mismatch leaves the permalink, feed order and file listing disagreeing on the publish day. When all posts pass it printsdate-match-coverage: 0 mismatches between filename date and front-matter 'date:' across <total> posts (...). A post that passes:_posts/2024-01-05-example.mdwith front matterdate: 2024-01-05 10:00:00 +0000(first ten characters of both are2024-01-05). Worked example of a post that trips it:_posts/AI/2024-05-23-azure-openai-prompt-caching.md --- title: "Prompt caching with Azure OpenAI" date: 2024-05-22 10:00:00 +0000 # <-- 2024-05-22 != filename's 2024-05-23 ---Fix it by renaming the file or changing
date:so the first ten characters agree. To self-check a single post before running the full script:f=_posts/AI/2024-05-23-things-to-consider-azure-openai.md # real example post; illustrates a passing check echo "filename: $(basename "$f" | cut -c1-10)" echo "date: $(grep -m1 '^date:' "$f" | sed 's/^date:[[:space:]]*//; s/["'"'"']//g' | cut -c1-10)"
-
future-backlog: the build fails if any post in_posts/is dated after today, or if any future-dated post is scheduled more than 14 days out._config.ymlsetsfuture: false, so a future-dated post is invisible on the live site until its day arrives; a large or far-out backlog means finished work sits unread. It uses the filename date (YYYY-MM-DDprefix), whichdate-match-coveragekeeps equal todate:, and never rewrites dates. When the backlog is within both caps it printsfuture-backlog: <count>/<total> posts dated after today <date>, none more than 14 days out (...). -
tab-order-coverage: the build fails if two_tabs/*.mdfiles share the same front-matterorder:, since Chirpy would silently reorder the sidebar nav by file name instead of the intended position. Tabs without anorder:key are not checked. When all tabs pass it printstab-order-coverage: all _tabs/*.md 'order:' values are unique (...). -
related-link-resolution: the build fails if a post's## Relatedsection links to/posts/<slug>/for a slug that no file in_postsproduces (readers would hit a 404). When all links resolve it printsrelated-link-resolution: 0/<total> posts with unresolved Related links (...). -
forward-link-coverage: the build fails if a post links to/posts/<slug>/for a post dated after both the referencing post and today, sincefuture: falsemeans Jekyll has not built that page yet and the link would 404 inhtmlproofer. When no such links exist it printsforward-link-coverage: 0/<total> posts linking to a not-yet-published later-dated /posts/<slug>/ (...). -
header-aspect-ratio: the build fails if a post's front-matterimage:/path:file has width/height more than 3% away from 40:21, the box Chirpy crops post headers to (anything else loses its left/right or top/bottom edges). Posts on the grandfather list intools/test.share exempt. Printsheader-aspect-ratio: <count>/<total> ... (...). Export new headers at 1500x788 or 1600x840. -
tag-conflict-coverage: the build fails if the Jekyll build log contains aConflict: The following destination is shared by multiple files.warning, since Jekyll exits 0 but silently lets one tag or category page overwrite another with the same output path (the archive then lists only part of the posts). When the build log is clean it printstag-conflict-coverage: 0 'Conflict: The following destination is shared by multiple files' warnings in the jekyll build log (...). -
today-not-future-coverage: the build fails if a post dated today is skipped ashas a future dateby a production read (no--future), e.g. adate:time later today or a+offsetthat is still ahead of now; such a post would land invisibly on the live site. Set a time that has already passed, or date it tomorrow to schedule it deliberately. When clean it printstoday-not-future-coverage: 0 posts dated <today> skipped as 'has a future date' by a production (no --future) read (...). -
future-external-links: runs after the mainhtmlprooferpass, which skips external URLs (--disable-external) so CI stays fast and immune to the back catalogue's link rot. Only the rendered pages of scheduled (future-dated) posts are re-checked with external links enabled, since those posts are still editable and a dead outbound link there should be caught before publish day instead of by a reader afterwards. The build fails ifhtmlprooferfinds a broken external link in one of those pages; it warns (WARNING: scheduled post ... has no rendered page) when a scheduled post has no_site/posts/<slug>/directory, in which case that post's links go unchecked. The site's own URLs (a scheduled post's canonical link is a 404 until it goes live), 403/429/999 responses and the bare font preconnect hosts are ignored. Printsfuture-external-links: <count> scheduled post page(s) checked with external links enabled (...).
It then builds the site into _site and runs htmlproofer against the
generated HTML (broken links, images and HTML), followed by the
future-external-links pass above. Use bash tools/test.sh --help
to see the config options.
tools/test.sh runs htmlproofer with --disable-external, so a dead outbound
link in a post (DNS failure, timeout, 4xx/5xx) is not caught by the test
suite. To find those, run the read-only watcher:
bash tools/check_external_links.shIt checks Markdown inline links of the form ](http...) / ](https...) in
every .md file under _posts/ (subfolders included), prints only the broken
ones (UNREACHABLE <url> or HTTP <code> <url>) and always exits 0 - it is a
watcher, not a gate, so silence means nothing looked broken. It does not
check bare URLs pasted as plain text, HTML <a href="..."> links, or
reference-style link definitions ([label]: http...), so those stay unchecked
by both the watcher and the test suite.
Three kinds of false positives are filtered out:
- a
404from a single-page-app host (e.g.tools.lamplitlabs.com, which GitHub Pages serves from404.htmlfor every client-side route) is accepted when the host's/sitemap.xmllists the URL; - a
404from ahttps://crates.io/crates/<name>page is accepted when the crates.io API (https://crates.io/api/v1/crates/<name>) answers200, since crates.io answers404to non-browser clients such as this watcher while the page itself is fine; - a
403from a host whose root also answers403(medium.com, stackoverflow.com block non-browser clients) is not reported because it says nothing about the specific page.
A transient answer (no response, 5xx or 429) is retried once after 2 s,
and if it persists the link is probed one more time in a second pass, at least
LINKWATCH_RECHECK_DELAY seconds (default 60) later. Only links that fail
both passes are reported. This way a short edge-host outage is not reported
as a dead link: on 2026-11-02, modelcontextprotocol.io refused connections
for about 30 s and showed up as UNREACHABLE while the page was live.
To run the site locally with live reload (optionally in production mode or bound to a non-default host, e.g. to reach the dev server from another device or a container):
bash tools/run.sh # dev server on 127.0.0.1
bash tools/run.sh --production # JEKYLL_ENV=production
bash tools/run.sh -H 0.0.0.0 # bind to all interfaces (also --host <host>)
bash tools/run.sh --help # list all options