docusaurus-openapi-docs icon indicating copy to clipboard operation
docusaurus-openapi-docs copied to clipboard

groupPathsBy tag not displaying as nested categories

Open pburrows opened this issue 1 year ago • 0 comments

Describe the bug

Generated API documents are not grouped by tag when rendered.

Expected behavior

Documents should be grouped by tag

Current behavior

*.tag.mdx files are being rendered flat, on the same level with the corresponding API endpoints:

image

In the above screenshot, BenefitGroups, BenefitPolicies, and Benefits are all tags with corresponding *.tag.mdx files

Steps to reproduce

See gist here.

Gist includes the docusaurus config file. The generates sidebar.ts file. The swagger.json file, and an example of one of the generated .tag.mdx files, and one of the generated endpoint mdx files.

An example of the rendered HTML is below. There are no nested <ul> tags for any of these <li> tags. I expect to see nested <ul> tags.

image

Your Environment

versions in package.json:

"dependencies": { "@docusaurus/core": "3.5.2", "@docusaurus/preset-classic": "3.5.2", "@mdx-js/react": "^3.0.0", "bootstrap": "^5.3.3", "clsx": "^2.0.0", "docusaurus-plugin-openapi-docs": "^4.1.0", "docusaurus-plugin-sass": "^0.2.5", "docusaurus-theme-openapi-docs": "^4.1.0", "prism-react-renderer": "^2.3.0", "react": "^18.0.0", "react-bootstrap": "^2.10.5", "react-dom": "^18.0.0", "react-icons": "^5.3.0" },

pburrows avatar Oct 27 '24 11:10 pburrows