vitepress
vitepress copied to clipboard
Route Announcer for Vitepress ๐ข
Adding Route Announcer to Vitepress js
for better accessibility.
Inspired by https://nextjs.org/docs/accessibility#route-announcements.
Extremely sorry still there are some work(adding to the Vitepress defaultly) to do please anyone help.me with it to integrate it.
Code brief explanation -:
-
Used
watchPostEffect
because need to update the route announcer after DOM updates. -
Used
shallowRef
for little improved performance.
Sorry if I made any mistakes ยก
Seems like we have this via ngprogress ๐ Thank you so much for the PR though ๐