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

Change ToC title on page scroll. #9

Open
HarshKapadia2 opened this issue Feb 8, 2022 · 0 comments
Open

Change ToC title on page scroll. #9

HarshKapadia2 opened this issue Feb 8, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@HarshKapadia2
Copy link
Owner

  • Change the title of the Table of Contents (ToC) from 'Table of Contents' to the title of the document.
  • Conditions to be met to make this change
    • When the ToC is on the left/right.
    • When the header is not visible.
  • Things to keep in mind
    • Handling of overflow of extra-long titles.
    • Detection of whether the ToC is on the left/right or not.
      • It doesn't make sense to make the change if the ToC is in the normal flow of the document.
    • Changing the ToC title back to 'Table of Contents' from the document title when a left/right aligned ToC goes to its normal flow in the document.

Current behaviour (top left)
image

Expected behaviour (top left)
image

No change to ToC title if doc title is visible
image

No change to ToC title if ToC is in the normal flow of the document
image

@HarshKapadia2 HarshKapadia2 added the enhancement New feature or request label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant