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

Simplify TOC item rendering and allow customisation of expand/collapse #249

Merged
merged 2 commits into from
May 5, 2023

Conversation

longhotsummer
Copy link
Contributor

Render items recursively inside the TOC component, rather than the toc-item component, so that we can make use of global data and not have to pass information down.

Fix the behaviour of the high-level "expanded" component.

Allow customised expanded attribute on a per-item basis.

Render items recursively inside the TOC component, rather than the
toc-item component, so that we can make use of global data and not have
to pass information down.

Fix the behaviour of the high-level "expanded" component.

Allow customised expanded attribute on a per-item basis.
Because TOC data by default has URL information
@longhotsummer longhotsummer merged commit de4bab8 into main May 5, 2023
@longhotsummer longhotsummer deleted the toc branch May 5, 2023 06:59
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.

1 participant