Skip to content

Infer listing group from parent directory when frontmatter is absent - #3891

Open
Mpdreamz wants to merge 1 commit into
mainfrom
feature/fix-listings
Open

Infer listing group from parent directory when frontmatter is absent#3891
Mpdreamz wants to merge 1 commit into
mainfrom
feature/fix-listings

Conversation

@Mpdreamz

Copy link
Copy Markdown
Member

Why

The listing: directive groups files via explicit listing: <group> frontmatter. Content that's already organized into per-group subdirectories (e.g. reference/indentation/foo.md) shouldn't have to repeat that grouping in every file's frontmatter — it's redundant with the directory structure and easy to forget, silently dropping pages into the "ungrouped" bucket.

What

When a content file has no listing: frontmatter, ResolveListingRef now falls back to inferring the group from the file's parent directory, but only when that directory is a recognized group folder (i.e. it has a group index file). Explicit listing: frontmatter still takes precedence when present.

Made with Cursor

…s absent

Content files inside a group subdirectory (e.g. reference/indentation/foo.md)
are automatically assigned to that group without requiring an explicit
listing: indentation in their frontmatter. The frontmatter key still takes
precedence when present.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant