From 03a7f4603799596e9cb6f864e27593b203bc2f06 Mon Sep 17 00:00:00 2001 From: Guruprasad Kulkarni Date: Thu, 12 Nov 2026 16:47:15 +0100 Subject: [PATCH] fix: asdf code block, dash-free post punctuation, blog.kulkarni.cloud site URL --- CHANGELOG.md | 24 +++++++++++++++++++ CLAUDE.md | 5 ++-- astro-paper.config.ts | 2 +- e2e/og-images.spec.ts | 2 +- e2e/url-preservation.spec.ts | 10 ++++---- package.json | 1 + ...-latest-version-of-the-tools-using-asdf.md | 7 +++--- ...ir-versions-and-automated-installations.md | 4 ++-- src/content/posts/tmux-how-i-use-it.md | 8 +++---- 9 files changed, 45 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c7737c..e17c725 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,27 @@ +## 2026-11-12 16:47 + +| Check | Status | Details | +|-------|--------|---------| +| Lint | ✓ PASS | 0 errors | +| Build | ✓ PASS | 27 pages built, 5 pages indexed (Pagefind) | +| Unit Tests | ✓ PASS | 50 tests passed | +| E2E Tests | ✓ PASS | 96 tests passed | +| Lighthouse | ✓ PASS | 99.8% performance (avg) | + +### Lighthouse Performance (local build) + +| Page | Scores (3 runs) | +|------|-----------------| +| / (index) | 100%, 100%, 100% | +| /about | 99%, 99%, 99% | +| /posts | 100%, 100%, 100% | +| /archives (soft 404, not linked) | 100%, 100%, 100% | +| /404 | 100%, 100%, 100% | + +**Diagnostics:** None. Live site not measured. + +Changes: Fix the asdf follow-up post: the two `asdf install latest` commands were bare text, so `` and `` rendered as HTML tags and vanished. They are now one `bash` code block, with the "Install latest stable version" line as a shell comment (as in the asdf docs) instead of a stray heading in the table of contents. Recast the prose ` -- ` (rendered as em dashes by smartypants) and spaced hyphens in the asdf, tools and tmux posts with commas, colons, semicolons, periods or parentheses; the no-em-dashes checker now reports 0 hits for all posts and `AGENTS.md` files. Switch `site.url` from `https://b.kulkarni.cloud/` (no DNS record) to `https://blog.kulkarni.cloud/`, so canonical, RSS, sitemap, robots and `og:image` URLs point at the live host; RSS readers see new item links once. Host updated in two e2e expectations (user-approved). Add `bun run clean` (removes `dist/` and `public/pagefind/`) as the first pre-commit step. + ## 2026-11-11 22:00 | Check | Status | Details | diff --git a/CLAUDE.md b/CLAUDE.md index 164cf7b..f03cecb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -This is a personal blog built with AstroPaper, an Astro 7-based static site generator. The blog is deployed to Cloudflare Pages at https://b.kulkarni.cloud/. +This is a personal blog built with AstroPaper, an Astro 7-based static site generator. The blog is deployed to Cloudflare Pages at https://blog.kulkarni.cloud/. **Stack:** Astro 7 + TypeScript 6 + TailwindCSS v4 + Bun @@ -14,6 +14,7 @@ This is a personal blog built with AstroPaper, an Astro 7-based static site gene |---------|---------| | `bun run dev` | Start dev server at localhost:4321 | | `bun run build` | Build production site to `./dist/` | +| `bun run clean` | Remove `dist/` and `public/pagefind/` | | `bun run preview` | Preview production build locally | | `bun run lint` | Run ESLint (flat config) | | `bun run lint:fix` | Run ESLint with auto-fix | @@ -96,7 +97,7 @@ The URL slug is the file name: `src/content/posts/foo.md` → `/posts/foo/`. Fil **REQUIRED:** Before making ANY commit, you MUST run these checks locally IN THIS EXACT ORDER and ensure they ALL pass: ```bash -rm -rf dist # Start fresh like CI +bun run clean # Start fresh like CI (removes dist/ and public/pagefind/) bun run lint # 1. Linting (0 errors) bun run build # 2. Build (must run before unit tests!) bun run test:run # 3. Unit tests (50+ tests, requires dist/) diff --git a/astro-paper.config.ts b/astro-paper.config.ts index 19418ce..f71bb3a 100644 --- a/astro-paper.config.ts +++ b/astro-paper.config.ts @@ -4,7 +4,7 @@ const title = "Developer Musings"; export default defineAstroPaperConfig({ site: { - url: "https://b.kulkarni.cloud/", + url: "https://blog.kulkarni.cloud/", title, description: "Umm, many things mostly software though, I hope", author: "Guruprasad Kulkarni", diff --git a/e2e/og-images.spec.ts b/e2e/og-images.spec.ts index 39e5b56..205dd93 100644 --- a/e2e/og-images.spec.ts +++ b/e2e/og-images.spec.ts @@ -15,7 +15,7 @@ test.describe("OG Images", () => { const content = await page .locator('meta[property="og:image"]') .getAttribute("content"); - expect(content).toBe(`https://b.kulkarni.cloud/posts/${slug}/index.png`); + expect(content).toBe(`https://blog.kulkarni.cloud/posts/${slug}/index.png`); const response = await request.get(new URL(content!).pathname); expect(response.status()).toBe(200); diff --git a/e2e/url-preservation.spec.ts b/e2e/url-preservation.spec.ts index 2d618ef..b60116b 100644 --- a/e2e/url-preservation.spec.ts +++ b/e2e/url-preservation.spec.ts @@ -35,11 +35,11 @@ test.describe("URL preservation", () => { m => m[1] ); expect(links).toEqual([ - "https://b.kulkarni.cloud/posts/some-interesting-features-in-github-actions/", - "https://b.kulkarni.cloud/posts/gradle-tricks/", - "https://b.kulkarni.cloud/posts/tmux-how-i-use-it/", - "https://b.kulkarni.cloud/posts/followup-latest-version-of-the-tools-using-asdf/", - "https://b.kulkarni.cloud/posts/on-the-topic-of-tools-their-versions-and-automated-installations/", + "https://blog.kulkarni.cloud/posts/some-interesting-features-in-github-actions/", + "https://blog.kulkarni.cloud/posts/gradle-tricks/", + "https://blog.kulkarni.cloud/posts/tmux-how-i-use-it/", + "https://blog.kulkarni.cloud/posts/followup-latest-version-of-the-tools-using-asdf/", + "https://blog.kulkarni.cloud/posts/on-the-topic-of-tools-their-versions-and-automated-installations/", ]); }); diff --git a/package.json b/package.json index 2505a15..c7b8a16 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "packageManager": "bun@1.4.4", "scripts": { "dev": "astro dev", + "clean": "node -e \"for (const d of ['dist','public/pagefind']) require('fs').rmSync(d, { recursive: true, force: true })\"", "build": "astro check && astro build && pagefind --site dist && node copy-pagefind.mjs", "preview": "astro preview", "sync": "astro sync", diff --git a/src/content/posts/followup-latest-version-of-the-tools-using-asdf.md b/src/content/posts/followup-latest-version-of-the-tools-using-asdf.md index 56edb35..a102df2 100644 --- a/src/content/posts/followup-latest-version-of-the-tools-using-asdf.md +++ b/src/content/posts/followup-latest-version-of-the-tools-using-asdf.md @@ -33,18 +33,19 @@ me in the correct direction if you find something and I will update it here. keeping you at the latest version. However, to sync the versions you use yourself and no one else on the team is a task that almost guaranteed to be forgotten. That brings us to the question from the earlier post. -> If I don't care about the version of a tool just that I have the latest, what should I do? -- rephrased ;) +> If I don't care about the version of a tool just that I have the latest, what should I do? (rephrased ;)) > > Aashish - There is a way described at `asdf` [documentation](https://asdf-vm.com/manage/versions.html#install-latest-stable-version) +```bash asdf install latest -## Install latest stable version that begins with a given string. - +# Install latest stable version that begins with a given string. asdf install latest: +``` However, I have not used it myself recently and earlier it did not work. diff --git a/src/content/posts/on-the-topic-of-tools-their-versions-and-automated-installations.md b/src/content/posts/on-the-topic-of-tools-their-versions-and-automated-installations.md index efa9131..b510875 100644 --- a/src/content/posts/on-the-topic-of-tools-their-versions-and-automated-installations.md +++ b/src/content/posts/on-the-topic-of-tools-their-versions-and-automated-installations.md @@ -20,7 +20,7 @@ Impatient? then these are the tools we will discuss - [afx](https://babarot.me/afx/) the command-line package manager -We developers love tools, we like to create them, use them and hope that they make our lives better as we are going about our day doing the things we do. You know don't you? "Working Hard or Hardly Working" -- I don't know who said that but I use it every chance I get. +We developers love tools, we like to create them, use them and hope that they make our lives better as we are going about our day doing the things we do. You know don't you? "Working Hard or Hardly Working": I don't know who said that but I use it every chance I get. ![So many tools and tool boxes](/assets/20221008/so-many-tools-and-tool-boxes-high-quality-digital-art.png) @@ -71,7 +71,7 @@ So, If you don't want to install manually then the following tools are for you! It's simple really, let's go though -- Install [asdf](https://asdf-vm.com/guide/getting-started.html#_1-install-dependencies) -- required only once :) +- Install [asdf](https://asdf-vm.com/guide/getting-started.html#_1-install-dependencies) (required only once :)) - Get all available plugins and find the tool you are looking for - e.g. diff --git a/src/content/posts/tmux-how-i-use-it.md b/src/content/posts/tmux-how-i-use-it.md index c2cc48f..2b671bb 100644 --- a/src/content/posts/tmux-how-i-use-it.md +++ b/src/content/posts/tmux-how-i-use-it.md @@ -29,12 +29,12 @@ We are going to go about this in a manner that even if you leave after some sect ## Intro (please don't stop after the intro ;) ) -`tmux` (modern - by linux standards) or `screen` (a bit older) are terminal multiplexers -- big words, but they allow you to manage multiple terminals easily. They do more than that, and they shine when connecting to remote servers but are just as useful for local development as we will see by the end. +`tmux` (modern, by Linux standards) or `screen` (a bit older) are terminal multiplexers: big words, but they allow you to manage multiple terminals easily. They do more than that, and they shine when connecting to remote servers but are just as useful for local development as we will see by the end. Using tmux requires a learning curve but then gets much more easy real soon and with huge productivity benefits ## Preset, Just install and use -Using Screen or Tmux requires some learning and setup, they are extremely flexible and non-opinionated, so it is possible to customize them (within limits - outside them, you contribute to the source code) as much as you want, but this means the sane defaults are mostly bare, if you install tmux and run it in a terminal you might not even notice anything except you have to press `Ctrl+D` or `exit` twice instead of the usual once :) +Using Screen or Tmux requires some learning and setup, they are extremely flexible and non-opinionated, so it is possible to customize them (within limits; beyond them, you contribute to the source code) as much as you want, but this means the sane defaults are mostly bare, if you install tmux and run it in a terminal you might not even notice anything except you have to press `Ctrl+D` or `exit` twice instead of the usual once :) To help with this there is a project that takes an opinionated approach and presents you with a pre-customized ready to use tmux setup that will go a long way for you. After installation simply press `Ctrl+A` and you are presented with a selection to select the keys, I usually select 1 `screen` keys as I am already familiar with them, however the backend by default ([AFAIK](https://www.urbandictionary.com/define.php?term=afaik)) is `tmux`. Here is how it looks for me. @@ -126,7 +126,7 @@ The Developer Setup That You Need on Every Restart of a Computer / Every Restart Yes, You can use tmux to do whatever you want, start any program, any server and as many windows + sub panes and easily navigate between them. Let's list some benefits before we go? -- Setup-Once-Benefit-Everytime (restart then open terminal and tmux a -- bam, git pull, compile, start servers and system monitoring any anything else you want) +- Setup-Once-Benefit-Everytime (restart then open terminal and tmux a. Bam: git pull, compile, start servers and system monitoring any anything else you want) - No Context Switching, when trying to find multiple terminals, rename the windows and move easily just with `Shift` or `Ctrl` and arrow keys @@ -145,6 +145,6 @@ There are numerous pages and even some books on tmux I think, just search, and y Don't forget to let me know how you like and use tmux indifferent ways, would love to integrate some tricks into my own config to use going forward. -So Young Padawans -- Go Learn the ways of the tmux. May tmux Be with you! +So, young Padawans, go learn the ways of the tmux. May tmux Be with you! ---