Skip to content

docs(rules): replace three unknown card icons and deploy the article-toc redirect #476 - #477

Merged
nc9 merged 1 commit into
mainfrom
docs/rule-index-icons-redirect
Oct 6, 2026
Merged

nc9 merged 1 commit into
mainfrom
docs/rule-index-icons-redirect

Conversation

@nc9

@nc9 nc9 commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Closes #476

What was wrong

  • Three card icons are not lucide names, so tangly rendered a question mark and logged [tangly] Unknown icon "...", falling back to HelpCircle.:

    • markdown and file-contract in docs/rules/ax/index.mdx;
    • hexagon-exclamation twice in docs/rules/perf/index.mdx.

    A fourth, brackets-curly on the entity-map index, was already fixed on main by docs(entity-map): move the entity map under guides with its own section #466 #467, which also moved that page.

  • /rules/content/article-toc was redirected only in docs.json. The build does not copy docs.json redirects into dist/_redirects, which is the file the Cloudflare static-assets deploy serves, so the old URL returned 404.

The fix

  • Icons: markdown -> file-code, file-contract -> file-signature, hexagon-exclamation -> octagon-alert. All three resolve in the lucide 1.49.0 that tangly 0.5.0 bundles.
  • _redirects gains /rules/content/article-toc /rules/content 301. The docs.json entry stays.

Evidence

  • bun x [email protected] build on the original base, before: 4 Unknown icon warnings (file-contract, hexagon-exclamation, brackets-curly, markdown). After: 0.
  • After rebasing on main (which added the entity-map redirects), the build still logs 0 unknown icons. The built dist/_redirects before had no article-toc line. After, it carries /rules/content/article-toc /rules/content 301, and dist/rules/content/index.html exists.
  • bun x [email protected] check --strict passes. dist/ and .tangly/ were removed after the build.

No CHANGELOG entry needed (docs only).

…toc redirect #476

markdown, file-contract and hexagon-exclamation are not lucide icons, so
tangly rendered a question mark. The /rules/content/article-toc redirect
lived only in docs.json, which the build does not copy into _redirects.

Closes #476

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9 nc9 changed the title docs(rules): replace four unknown card icons and deploy the article-toc redirect #476 docs(rules): replace three unknown card icons and deploy the article-toc redirect #476 Oct 6, 2026
@nc9
nc9 force-pushed the docs/rule-index-icons-redirect branch from cc85de5 to 1223768 Compare October 6, 2026 00:13
@nc9
nc9 marked this pull request as ready for review October 6, 2026 00:17
@nc9
nc9 merged commit 7a98500 into main Oct 6, 2026
14 checks passed
@nc9
nc9 deleted the docs/rule-index-icons-redirect branch October 6, 2026 00:17
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.

docs: four card icons render as a question mark, and the article-toc redirect never deploys

1 participant