Skip to content

devlore-docs writes a subcommand named index as index.md, which the site reads as its directory's page: two star pages collide and the site has not built since 2026-09-24 #952

Closed

Description

@David-Noble-at-work

devlore-docs names a command group's page <group>.md and each subcommand <group>/<name>.md (outputPath, cmd/devlore-docs/generator.go:80). star has two subcommands named index — star devlore knowledge index, star devlore package index — so it writes knowledge/index.md and package/index.md. Astro, which builds devlore.noblefactor.com, treats a file named index.md as the page for its directory, so each collides with the group page beside it: DuplicateContentEntrySlugError: cli contains multiple entries with the same slug: star/devlore/knowledge. The site has failed every build since the first sync that carried star's pages, 2026-09-24 07:34 (#787 made the generator emit them); production is frozen at the build before it, and nothing merged to the site since has deployed, install.ps1 (#951) included.

The fix, ruled 2026-09-26: the generator writes each page's URL path into its frontmatter explicitly — slug: star/devlore/knowledge/index, Astro's field for "use this path, not the one derived from the filename" — for every page, as the command's words joined with /. Every existing URL is unchanged; the two index subcommands get the URL the pattern already implies, one level below their group. The next docs sync then carries the fixed pages to the site.

A companion fix on the site (devlore.noblefactor.com: the cli collection's tool schema allows writ and lore only, so star's and devlore-test's pages would be refused next) is filed there. Found closing devlore-cli#948's last box (site#455).

Plan and design documents

Kind Document
Plan docs/plans/fix/952-devlore-docs-writes-a-subcommand.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions