PurpurDocs
PurpurDocs copied to clipboard
Meta tags for each option header
Since you cannot assign meta tags based on URI fragments, create a custom page for each option that redirects you to the location of that option in the Configuration page.
Using the verbose
option as an example from the docs,
https://purpurmc.org/docs/Configuration/#verbose would be the original link to the option, and
https://purpurmc.org/docs/Configuration/verbose
would be used for meta tags that describe the option whilst also redirecting you to the original link when opened. The hyperlink 🔗
icon next to the option name would use window.history.pushState
to replace the link in the address bar with the new page whilst also keeping the "jumping to header" functionality using Element#scrollIntoView()
to encourage usage of this new feature.
The only reason I want this functionality is so that posting a link to the option will display an embed in discord with the information on that option. It's a lot of work for minimal gain, which is why I don't see this happening anytime soon.