Skip to content

fix(docs): every generated CLI page states its own URL path, so two star pages stop colliding - #953

Merged
David-Noble-at-work merged 2 commits into
developfrom
fix/952-devlore-docs-writes-a-subcommand
Sep 26, 2026
Merged

David-Noble-at-work merged 2 commits into
developfrom
fix/952-devlore-docs-writes-a-subcommand

Conversation

@David-Noble-at-work

@David-Noble-at-work David-Noble-at-work commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Lane 2 of #949. Companion: devlore.noblefactor.com#457.

  • slug: on every page — PageData.Slug, the command's words joined with /, written into the frontmatter after title. It is the path Astro already derives for every file except one named index.md, which Astro reads as its directory's page; star's knowledge index and package index collided with their groups and the site has not built since 2026-09-24. No existing URL changes; the two index pages get the path one level below their group.
  • A guard — TestGenerateTree_SlugMatchesPath generates a tree with a subcommand named index and holds every page's slug equal to its path minus .md, and no two pages sharing one. Fails without the fix ("no slug line" on every page), passes with it.
  • Plan — docs/plans/fix/952-devlore-docs-writes-a-subcommand.md, active: its last box closes when the site's build goes green after the next docs sync, with Command execution semantics: targeting and compensation #457 merged.

Resolves #952

Test plan

  • go test ./cmd/devlore-docs/ — passes; with the Slug assignment removed, TestBuildPageData and the new guard fail
  • make build regenerated docs/cli/: 148 pages, 148 slug: lines, 0 duplicates, 0 mismatches; knowledge/index.md → star/devlore/knowledge/index, package/index.md → star/devlore/package/index
  • make vet-all (linux, darwin, windows), star lint shell ., gofmt -l clean on DANOBLE-UD24-1; make lint-all runs in CI
  • After the merge: the docs sync carries pages with slug; with Command execution semantics: targeting and compensation #457 merged, the site builds for the first time since 2026-09-24

Time

Marker UTC Elapsed
opened (first commit) 2026-09-26T09:33:30Z —
submitted (PR opened) 2026-09-26T09:49:34Z 0.3 h after opened
merged 2026-09-26T10:02:02Z 0.2 h after submitted; 0.5 h in all

Computed by the algorithm of noblefactor-ops#188 at merge.

…tar pages stop colliding

devlore-docs names a group's page <group>.md and a subcommand's <group>/<name>.md. star has two
subcommands named index -- star devlore knowledge index, star devlore package index -- so it wrote
knowledge/index.md and package/index.md, and Astro reads a file named index.md as its directory's
page: each collided with the group page beside it, and devlore.noblefactor.com has failed every
build since the first sync that carried star's pages, 2026-09-24 07:34.

Every page now carries slug: "<the command's words joined with />" in its frontmatter -- the URL
path Astro derives today for every file but those two -- so no existing URL changes and the index
subcommands get the path one level below their group. TestGenerateTree_SlugMatchesPath holds every
page's slug equal to its path, index included, so the next subcommand by that name cannot bring
this back. The regenerated tree: 148 pages, 148 slugs, none duplicated, none differing from its path.

Companion on the site: devlore.noblefactor.com#457 admits star and devlore-test to the schema.

Resolves #952

Claude-Session: https://claude.ai/code/session_01DuNfZFyfxBoD9pdaiDEMrY
@David-Noble-at-work
David-Noble-at-work merged commit ac4c19e into develop Sep 26, 2026
13 checks passed
@David-Noble-at-work
David-Noble-at-work deleted the fix/952-devlore-docs-writes-a-subcommand branch September 26, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant