Skip to content
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

Empty sections should not be included in the generated documentation #136

Open
Fs00 opened this issue Mar 13, 2023 · 1 comment
Open

Empty sections should not be included in the generated documentation #136

Fs00 opened this issue Mar 13, 2023 · 1 comment
Assignees
Labels
bug Unexpected behavior, a defect
Milestone

Comments

@Fs00
Copy link

Fs00 commented Mar 13, 2023

Describe the bug
My GraphQL schema doesn't have any union type. Nevertheless, I see that the Unions section is present in the generated docs (but it's empty) and the Union landing page is generated.
This also happens when there are no schema items for other categories of types like enums, mutations or interfaces.

To Reproduce
Generate the docs for a schema without items of a certain category (mutations, enums, etc.).

Expected behavior
The sidebar section for the category that has no items should not be present and the corresponding landing page should not be generated.

Screenshots
Empty section in the sidebar:
Sidebar

@Fs00 Fs00 added the bug Unexpected behavior, a defect label Mar 13, 2023
@brettchalupa
Copy link
Owner

@Fs00 thanks for logging this. Makes sense! I'll try to get this fixed up for upcoming the v4.1 release this week.

@brettchalupa brettchalupa self-assigned this Mar 13, 2023
@brettchalupa brettchalupa added this to the v4.1.0 milestone Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior, a defect
Projects
Development

No branches or pull requests

2 participants