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

Do not show container section of TOC in classes #3380

Merged
merged 2 commits into from Nov 26, 2022

Conversation

mvriel
Copy link
Member

@mvriel mvriel commented Nov 25, 2022

Classes have a method getInterfaces() with which you describe which interfaces a Class implements, but this conflicts in the table-of-contents template as this assumes that if there is a getInterfaces() method it will show a section intended for namespaces, packages and files.

This change introduces twig test functions to test for various types of descriptors, and an extra check in the table of contents template whether the given node is an element container.

Classes have a method getInterfaces() with which you describe which
interfaces a Class implements, but this conflicts in the
table-of-contents template as this assumes that if there is a
getInterfaces() method it will show a section intended for namespaces,
packages and files.

This change introduces twig test functions to test for various types of
descriptors, and an extra check in the table of contents template
whether the given node is an element container.
@mvriel mvriel requested a review from jaapio November 25, 2022 11:25
@mvriel mvriel merged commit 16af967 into master Nov 26, 2022
@mvriel mvriel deleted the fix/do-not-show-container-elements-in-toc-for-classes branch November 26, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant