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

[docs]: add scrollOffset in site config documentation #4291

Open
4 tasks done
Barbapapazes opened this issue Oct 15, 2024 · 0 comments
Open
4 tasks done

[docs]: add scrollOffset in site config documentation #4291

Barbapapazes opened this issue Oct 15, 2024 · 0 comments
Labels
contribution welcome The team would welcome a contribution from the community for this issue docs Improvements or additions to documentation

Comments

@Barbapapazes
Copy link

Describe the bug

Hello 👋,

Not really a bug but an API missing in the documentation. I'm building a custom theme and it took me an hour to understand why a scroll-margin-top does not affect the scroll. It seems the router overwrite it with a custom value offset, defined for the documentation theme (134px). For a custom theme this value will change but I found nothing in the documentation.

See the link below that shows all references to scrollOffset. The option exists but not in the documentation.

Reproduction

https://github.com/search?q=repo%3Avuejs%2Fvitepress%20scrollOffset&type=code

Expected behavior

I expect the documentation to have this API explained.

System Info

https://vitepress.dev/reference/site-config#site-config

Additional context

No response

Validations

@Barbapapazes Barbapapazes added the bug: pending triage Maybe a bug, waiting for confirmation label Oct 15, 2024
@brc-dd brc-dd added docs Improvements or additions to documentation contribution welcome The team would welcome a contribution from the community for this issue and removed bug: pending triage Maybe a bug, waiting for confirmation labels Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution welcome The team would welcome a contribution from the community for this issue docs Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants