This issue is inspired by remarks at #2411 (comment) stating:
the convention for the repo is front matter sidebar_position only, no _category_.json files.
Copilot disagreed with this assertion when it was added to a PR in progress, at #2579 (comment).
I have undergone significant effort to create category files, accepting that they do look a little bit out of place as json files scattered within an mdx repo docs folder. The original PR expanded existing category metadata as file front matter by styling (subfolder) card descriptions. A lot of the docs pages are these kinds of menu arrays listing subdirectories or just contained pages:

Firstly, the intent of the "Open Markdown" was for AI use (implemented in #2289 in conjunction with LLMs.txt changes). #2249 indicated that it was for "making it easy for developers to grab structured content." Directory pages do not generally include such information that may be needed during development flows, and I propose we remove that distracting button on directories.
Secondly, the descriptions imported from child files get only one truncated line, making previews almost unusable. This limitation is particularly bad on mobile:

(It leaves drafters to choose between descriptive page titles or concise descriptions, neither of which properly index informative copy.)
Thirdly, folders within folders do not natively include information. They only list the number of sub-items, unless you add a category JSON file. I believe this looks infinitely better than a bunch of useless item counts across cards.
In my PR where this came up, @Shaptic and @chowbao added some rare descriptive text to the category page in #1785 (review). I then migrated that metadata into the actual folder category JSONs so that it showed up in one uniform place:

(I deprecated the duplication of category titles and later descriptions in #2412.)
I would like to have this kind of structured directory metadata throughout the docs, because it makes things much easier to navigate, much less repetitive, and much easier to parse in search and agent workflows. I propose using the category files extensively to add metadata about folders, and even apply custom DocCard emojis to represent their contents. What do you think about a framework for this sort of meta description within the card buttons?
This issue is inspired by remarks at #2411 (comment) stating:
Copilot disagreed with this assertion when it was added to a PR in progress, at #2579 (comment).
I have undergone significant effort to create category files, accepting that they do look a little bit out of place as
jsonfiles scattered within anmdxrepo docs folder. The original PR expanded existing category metadata as file front matter by styling (subfolder) card descriptions. A lot of the docs pages are these kinds of menu arrays listing subdirectories or just contained pages:Firstly, the intent of the "Open Markdown" was for AI use (implemented in #2289 in conjunction with LLMs.txt changes). #2249 indicated that it was for "making it easy for developers to grab structured content." Directory pages do not generally include such information that may be needed during development flows, and I propose we remove that distracting button on directories.
Secondly, the descriptions imported from child files get only one truncated line, making previews almost unusable. This limitation is particularly bad on mobile:
(It leaves drafters to choose between descriptive page titles or concise descriptions, neither of which properly index informative copy.)
Thirdly, folders within folders do not natively include information. They only list the number of sub-items, unless you add a category JSON file. I believe this looks infinitely better than a bunch of useless item counts across cards.
In my PR where this came up, @Shaptic and @chowbao added some rare descriptive text to the category page in #1785 (review). I then migrated that metadata into the actual folder category JSONs so that it showed up in one uniform place:
(I deprecated the duplication of category titles and later descriptions in #2412.)
I would like to have this kind of structured directory metadata throughout the docs, because it makes things much easier to navigate, much less repetitive, and much easier to parse in search and agent workflows. I propose using the category files extensively to add metadata about folders, and even apply custom DocCard emojis to represent their contents. What do you think about a framework for this sort of meta description within the card buttons?