Skip to content

docs(entity-map): move the entity map under guides with its own section #466 - #467

Merged
nc9 merged 1 commit into
mainfrom
docs/entity-map-guides
Oct 5, 2026
Merged

nc9 merged 1 commit into
mainfrom
docs/entity-map-guides

Conversation

@nc9

@nc9 nc9 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Closes #466

The entity map docs move out of the Reference tab and into Guides, as their own "Entity map" section, ahead of today's announcement. Every old URL keeps working through a permanent redirect.

URLs

Old New
/entity-map /guides/entity-map
/entity-map/cli /guides/entity-map/cli
/entity-map/cloud /guides/entity-map/cloud
/entity-map/mcp /guides/entity-map/mcp
/entity-map/format /guides/entity-map/format
/entity-map/fixing /guides/entity-map/fixing

The files moved with git mv, so git log --follow keeps their history.

Redirects

docs/_redirects is the file that actually takes effect. tangly build copies it into dist/ verbatim and Workers static assets apply it. The redirects array in docs.json is never read: live, /rules/content/article-toc, which is only listed there, returns a 404. The new entries are in docs.json as well, for parity only.

/entity-map /guides/entity-map 301
/entity-map.md /guides/entity-map.md 301
/entity-map/* /guides/entity-map/:splat 301
/og/entity-map.png /og/guides/entity-map.png 301
/og/entity-map/* /og/guides/entity-map/:splat 301

The splat also covers the .md versions of the subpages (/entity-map/cli.md and the rest). The live site serves those today (curl -sI https://docs.squirrelscan.com/entity-map/cli.md returns 200 text/markdown), and so do the OG images.

Tested against the real build (bun x [email protected] build, then bun x [email protected] dev serving dist/ locally):

/entity-map               -> 301 /guides/entity-map          (follows to 200 text/html)
/entity-map/              -> 301 /guides/entity-map/         (then 307 to /guides/entity-map, 200)
/entity-map/cli|cloud|mcp|format|fixing -> 301 /guides/entity-map/<same>
/entity-map.md            -> 301 /guides/entity-map.md       (200 text/markdown)
/entity-map/cli.md        -> 301 /guides/entity-map/cli.md   (200 text/markdown)
/og/entity-map.png        -> 301 /og/guides/entity-map.png   (200 image/png)
/og/entity-map/format.png -> 301 /og/guides/entity-map/format.png (200 image/png)
/agents                   -> 301 /developers/agents          (existing rule unchanged)

Sidebar

The "Entity map" group sits after "Tutorials" in the Guides tab and uses the network icon. Each page sets a sidebarTitle and an icon in its frontmatter:

Page Sidebar label Icon
guides/entity-map/index Overview map
guides/entity-map/cli On your machine terminal
guides/entity-map/cloud In the cloud cloud
guides/entity-map/mcp For agents bot
guides/entity-map/format Format reference braces
guides/entity-map/fixing Fixing identity wrench

Every icon was resolved through tangly's own Icon.astro logic against lucide 1.26.0 (the version in bun.lock) and 1.49.0. The build log has no Unknown icon warning for any of these pages. In the built HTML every sidebar entry renders its lucide SVG, and none falls back to the help circle.

The overview's card icons are fixed too. brackets-curly resolved to nothing and rendered a help circle; it is now braces. robot only worked through the Font Awesome alias table and is now bot.

Inbound links updated

  • docs/cli/entities.mdx: 5 links in the references list. Its em-dashes became colons.
  • docs/cli/mcp.mdx: 1
  • docs/developers/mcp.mdx: 1
  • docs/rules/schema/index.mdx: 1
  • docs/rules/schema/entity-*.mdx: 2 each across all 13 rule pages. These are hand-written; there is no generator for them.
  • The moved pages' own links and "References" lists. The em-dashes in those lists became colons.
  • docs/index.mdx: a new "Entity map" card under "Why squirrelscan?", and the Structured Data row now links to the entity map.
  • packages/rules/src/schema/entity-shared.ts: ENTITY_FIX_DOCS now points at https://docs.squirrelscan.com/guides/entity-map/fixing, and its test matches. All 13 rules interpolate it into their fix text.
  • Left alone: docs/openapi.json (generated from the private API). Its entity endpoint descriptions still say /entity-map, and the redirect covers them. Also left alone: packages/audit-engine/tests/fixtures/entity-map/*.json, which is captured crawl data.

Anchors

The only #fragment links into the moved pages are /guides/entity-map/format#the-json-ld-export and #the-change-set from cli.mdx, and both ids exist in the built HTML. Live and new heading ids match on 5 of the 6 pages. The headings for JSON fields and tool names now use code formatting, and their slugs did not change. The overview was restructured, so #what-it-is and #reading-the-graph no longer exist. Nothing in either repo links to them.

Copy

  • The overview is now a landing page: what the map is, why it matters, how to see yours with one command (squirrel audit prints an Entities block), then the cards.
  • I checked the new copy against apps/cli/src/reports/output/console.ts (printEntities), apps/cli/src/cli/commands/entities.ts and packages/report/src/entities.ts.
  • The fixing guide's tangly section used to tell readers to set site.url, organization and social. Those keys do not exist. It now names the real docs.json keys, siteUrl, seo.organization and sameAs, checked against @tanglydocs/schema resolveOrganization/siteNodes.
  • None of the touched docs has an em-dash left, and every heading is sentence case.

Gates

  • bun x [email protected] check --strict: Pages: 416 ... All checks passed. The one orphan, agent-setup/prompt, was already there.
  • bun x [email protected] build: 419 pages built, _redirects copied into dist/.
  • bun test packages/rules/tests/schema-entity-rules.test.ts: 125 pass, 0 fail.
  • tsgo --noEmit in packages/rules: clean.
  • Codex review: no findings on links, anchors, redirects or icons. It flagged two claims as stronger than the code: "the three/ten entities the site declares most" ignored primaryEntities() dropping page-local nodes, and tangly's per-page graph redeclares the site nodes rather than only referencing them. Both are fixed, and codex confirmed the tangly paragraph.

Not in this PR

  • Three icons elsewhere in the docs still fall back to a help circle: file-contract and markdown in rules/ax/index.mdx, and hexagon-exclamation in rules/perf/index.mdx.
  • The docs.json redirect for /rules/content/article-toc has never worked and needs a _redirects line.
  • The squirrelscan/skills repo still links the old URLs, in skills/squirrelscan/SKILL.md:170 and skills/squirrelscan/references/entity-map-fixes.md:5. The redirects keep both working.

#466

Pages move from /entity-map/* to /guides/entity-map/* and leave the
Reference tab for an Entity map group in Guides, with a lucide icon and
a short sidebar label on every page. _redirects keeps every old URL, its
.md twin and its og image working with a 301; tangly 0.5.0 copies that
file into dist and ignores the docs.json redirects array, which is kept
for parity only.

Every internal link, the rule fix text (ENTITY_FIX_DOCS) and the docs
home move to the new paths. The overview becomes a landing page, the
broken brackets-curly card icon becomes braces, related lists lose their
em-dashes, and the tangly paragraph in the fixing guide now names the
real docs.json keys (siteUrl, seo.organization, sameAs).

Closes #466

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9
nc9 marked this pull request as ready for review October 5, 2026 23:06
@nc9
nc9 merged commit 57c8e92 into main Oct 5, 2026
14 checks passed
@nc9
nc9 deleted the docs/entity-map-guides branch October 5, 2026 23:16
nc9 added a commit to squirrelscan/skills that referenced this pull request Oct 5, 2026
…fix the tangly guidance (1.8) (#16)

The entity map docs moved to /guides/entity-map (squirrelscan/squirrelscan#467); the old URLs redirect. The tangly section named config keys that do not exist; it now matches the docs: siteUrl, seo.organization and sameAs.

Signed-off-by: Nik Cubrilovic <[email protected]>
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: move the entity map docs under Guides with their own section

1 participant