Skip to content

Conversation

@mfw78
Copy link
Contributor

@mfw78 mfw78 commented Apr 24, 2024

Description

When there is no content specified in a README.mdx / README.md within a folder, this creates a "category" in Docusaurus, and, if there is children content, this will just appear as navigation items under the folder's name as a new Section (i.e. there is no TOC, and no specific page for that folder / section when selected).

This causes issues, such as when wanting to refer users to "all order types" (see https://docs.cow.fi/category/concepts and try to click 'Order Types'). It's a common request to be asked what order types are supported, and not having a section that contains this in a snapshot makes the documentation difficult to navigate / cumbersome.

Changes

  • All sections that do not have a README.mdx / README.md (i.e. no top level content), now have an auto-generated table of contents.

@mfw78 mfw78 added the documentation Improvements or additions to documentation label Apr 24, 2024
@mfw78 mfw78 requested a review from crystalmacow April 24, 2024 06:31
@mfw78 mfw78 self-assigned this Apr 24, 2024
@mfw78 mfw78 requested a review from a team as a code owner April 24, 2024 06:31
@vercel
Copy link

vercel bot commented Apr 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview Apr 24, 2024 6:39am

@mfw78 mfw78 merged commit 594d8dd into main Apr 24, 2024
@mfw78 mfw78 deleted the standardise-sections branch April 24, 2024 14:29
@github-actions github-actions bot locked and limited conversation to collaborators Apr 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants