Previously, we sent users to the top of the page whenever they
click on a property that refers to a global enum/struct in our
documentation. However the page is already filled with permalinks
we can use, so I made it so we assume there's a permalink.
If the permalink doesn't exist, it would just send them back to
the top of the page anyway which was the previous status quo.
This had an entry in the linkMap, but was never hooked up and forgotten.
It has the obvious limitation of not going to the specific enum you're
looking for, but this is the same for struct properties anyway.
There are multiple Astro project and others that use shared files such as the Slint grammar file. This puts them into an NPM project that can be imported easily.