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

Fix the TOC being loaded as last making the content jump around with big pages #277

Merged
merged 4 commits into from
Aug 23, 2024

Conversation

bedroesb
Copy link
Member

@bedroesb bedroesb commented Aug 22, 2024

New reversed approach: The assumption is that there will be a TOC, and if not enough H2 headings, the full width will be taken for content.

Some other changes:

  • The default minimum of 1 headings for TOC to show up (instead of 2)
  • More documentation
  • RDMkit linkage example

IMPORTANT: to prevent the TOC from visibly disappearing when not needed, add the toc: false attribute to the page.

This will close #216

@bedroesb bedroesb merged commit 38d96f9 into main Aug 23, 2024
4 checks passed
@bedroesb bedroesb deleted the toc-jumping branch August 23, 2024 14:45
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.

When long tools table on page, TOC loads with a delay
1 participant