-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue when using tag groups #792
Comments
@bencagri, any idea why this might be occurring? |
hi @Kkundan , have you tried to rebuild the docs with |
Hi @bencagri : I have tried |
thanks @bencagri but I am actually currently using |
The issue might be the yarn docusaurus clean-api-docs all not deleting the sidebar.js (.ts) and for some reason in version 3.0 (not sure what is behivier in versino 2.0) when gen-api-docs it's not regenerated. @Kkundan can you delete the docs/open-api/sidebar.js/ts |
@stakoov I have delete them and regenerated but still the same issue |
Hello @Kkundan , unfortunately I do have a busy schedule to check this up with 3.0-beta tag. I will take a glance as soon as I can. |
Hi @Kkundan I will investigate this one later this week. |
@stakoov I see the same issue in your tryingpan app : https://docusaurus-openapi.tryingpan.dev/category/restaurant-api |
I poked around a bit in my local if (sidebarOptions.groupPathsBy !== "tagGroup") {
apiTags = uniq(apiTags.concat(operationTags));
} @Kkundan @stakoov Maybe that could help with your troubleshooting? |
Describe the bug
I have used
tagGroup
to group paths in the side bar. However instead of grouping specific paths, it is grouping all paths in every group.[ "docusaurus-plugin-openapi-docs", { id: "openapi", docsPluginId: "classic", config: { saviynt:{ specPath: "static/api-specs/saviynt-eic-api-5.0.yaml", outputDir: "docs/eic/", sidebarOptions: { groupPathsBy: "tagGroup", // categoryLinkSource: "tag", }, version: "5.0.0", // Current version label: "v5.0.0", // Current version label baseUrl: "/developer-portal/eic/rest/5.0", // Leading slash is important versions: { "2.0.0": { specPath: "static/api-specs/saviynt-eic-api-2.0.yaml", outputDir: "docs/eic/2.0", // No trailing slash label: "v2.0.0", baseUrl: "/developer-portal/eic/rest/2.0", // Leading slash is important }, }, } satisfies OpenApiPlugin.Options, } satisfies Plugin.PluginOptions, }, ], ],
Expected behavior
I should only group specific path listed under the tagGroup
Current behavior
It is grouping all paths
Possible solution
Steps to reproduce
OpenAPI Spec: https://github.com/saviynt/developer-portal/blob/main/static/api-specs/saviynt-eic-api-5.0.yaml
Generated Doc: https://saviynt.github.io/developer-portal/
Screenshots
The text was updated successfully, but these errors were encountered: