Skip to content

feat(lint): a controlled topic tag only when one fits the post - #124

Merged
bits-bytes-nn merged 2 commits into
mainfrom
fix/optional-controlled-tag
Nov 12, 2026
Merged

bits-bytes-nn merged 2 commits into
mainfrom
fix/optional-controlled-tag

Conversation

@bits-bytes-nn

Copy link
Copy Markdown
Owner

A post had to carry at least one controlled topic tag, so generated posts with no fitting entry got a near-miss tag (an architecture paper tagged Alignment), which then suggested unrelated posts as related reading.

  • script/lint-posts.rb: a controlled tag is no longer required; a post still needs some tags.
  • docs/writing.md, _plugins/related_posts.rb, _data/post_conventions.yml: a controlled tag when one fits; no related reading beats wrong related reading.
  • Tests: test/test_lint_posts.rb covers both.

All 38 current posts carry a controlled tag, so the live site's related reading does not change. ruby test/run_all.rb (193 runs) and ruby script/lint-posts.rb pass.

@bits-bytes-nn
bits-bytes-nn merged commit 63958a0 into main Nov 12, 2026
3 checks passed
@bits-bytes-nn
bits-bytes-nn deleted the fix/optional-controlled-tag branch November 12, 2026 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant