Repository navigation
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 intoSep 26, 2026
Conversation
…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
deleted the
fix/952-devlore-docs-writes-a-subcommand
branch
September 26, 2026 10:02
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.
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 aftertitle. It is the path Astro already derives for every file except one namedindex.md, which Astro reads as its directory's page; star'sknowledge indexandpackage indexcollided with their groups and the site has not built since 2026-09-24. No existing URL changes; the twoindexpages get the path one level below their group.TestGenerateTree_SlugMatchesPathgenerates a tree with a subcommand namedindexand 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.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 theSlugassignment removed,TestBuildPageDataand the new guard failmake buildregenerateddocs/cli/: 148 pages, 148slug:lines, 0 duplicates, 0 mismatches;knowledge/index.md→star/devlore/knowledge/index,package/index.md→star/devlore/package/indexmake vet-all(linux, darwin, windows),star lint shell .,gofmt -lclean on DANOBLE-UD24-1;make lint-allruns in CIslug; with Command execution semantics: targeting and compensation #457 merged, the site builds for the first time since 2026-09-24Time
Computed by the algorithm of noblefactor-ops#188 at merge.