Repository navigation
docs(entity-map): move the entity map under guides with its own section #466 - #467
Merged
Merged
Conversation
#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
marked this pull request as ready for review
October 5, 2026 23:06
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]>
This was referenced Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
/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/fixingThe files moved with
git mv, sogit log --followkeeps their history.Redirects
docs/_redirectsis the file that actually takes effect.tangly buildcopies it intodist/verbatim and Workers static assets apply it. Theredirectsarray indocs.jsonis never read: live,/rules/content/article-toc, which is only listed there, returns a 404. The new entries are indocs.jsonas well, for parity only.The splat also covers the
.mdversions of the subpages (/entity-map/cli.mdand the rest). The live site serves those today (curl -sI https://docs.squirrelscan.com/entity-map/cli.mdreturns 200text/markdown), and so do the OG images.Tested against the real build (
bun x [email protected] build, thenbun x [email protected] devservingdist/locally):Sidebar
The "Entity map" group sits after "Tutorials" in the Guides tab and uses the
networkicon. Each page sets asidebarTitleand aniconin its frontmatter:guides/entity-map/indexmapguides/entity-map/cliterminalguides/entity-map/cloudcloudguides/entity-map/mcpbotguides/entity-map/formatbracesguides/entity-map/fixingwrenchEvery icon was resolved through tangly's own
Icon.astrologic against lucide 1.26.0 (the version inbun.lock) and 1.49.0. The build log has noUnknown iconwarning 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-curlyresolved to nothing and rendered a help circle; it is nowbraces.robotonly worked through the Font Awesome alias table and is nowbot.Inbound links updated
docs/cli/entities.mdx: 5 links in the references list. Its em-dashes became colons.docs/cli/mcp.mdx: 1docs/developers/mcp.mdx: 1docs/rules/schema/index.mdx: 1docs/rules/schema/entity-*.mdx: 2 each across all 13 rule pages. These are hand-written; there is no generator for them.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_DOCSnow points athttps://docs.squirrelscan.com/guides/entity-map/fixing, and its test matches. All 13 rules interpolate it into their fix text.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
#fragmentlinks into the moved pages are/guides/entity-map/format#the-json-ld-exportand#the-change-setfromcli.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-isand#reading-the-graphno longer exist. Nothing in either repo links to them.Copy
squirrel auditprints an Entities block), then the cards.apps/cli/src/reports/output/console.ts(printEntities),apps/cli/src/cli/commands/entities.tsandpackages/report/src/entities.ts.site.url,organizationandsocial. Those keys do not exist. It now names the realdocs.jsonkeys,siteUrl,seo.organizationandsameAs, checked against@tanglydocs/schemaresolveOrganization/siteNodes.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,_redirectscopied intodist/.bun test packages/rules/tests/schema-entity-rules.test.ts: 125 pass, 0 fail.tsgo --noEmitinpackages/rules: clean.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
file-contractandmarkdowninrules/ax/index.mdx, andhexagon-exclamationinrules/perf/index.mdx.docs.jsonredirect for/rules/content/article-tochas never worked and needs a_redirectsline.squirrelscan/skillsrepo still links the old URLs, inskills/squirrelscan/SKILL.md:170andskills/squirrelscan/references/entity-map-fixes.md:5. The redirects keep both working.