vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.25k stars 2.14k forks source link

Add support for emojis in the sidebar #4319

Closed Veetaha closed 4 weeks ago

Veetaha commented 4 weeks ago

I tried to add this item to the sidebar to denote an experimental feature:

{
    text: "🔬 overwritable",
    link: "/reference/builder/member/overwritable",
}

but it rendered without the 🔬 symbol: image

I think it makes sense to allow emojis there. This still looks nice (I just added this manually via dev tools for demo purposes):

image

brc-dd commented 4 weeks ago

Seems to work fine 👀

image

https://stackblitz.com/edit/vite-jn4gzs?file=docs/.vitepress/config.ts

Veetaha commented 4 weeks ago

Indeed, maybe I just didn't update the page :flushed:, I though I did, but now that I try it again I can't reproduce this. I'll close this issue, thanks!

brc-dd commented 4 weeks ago

I'm seeing some issues with restarting being unreliable. Probably something changed in newer vite versions. Tracking it along bun support in #4313