Currently the name of the composable is normalised to generate the path to the relevant doc in unhead (https://github.com/harlan-zw/nuxt-seo/blob/main/docs/components/content/SchemaOrgNodeList.vue) however this results in invalid urls e.g. defineWebPage becomes https://unhead.unjs.io/schema-org/schema/web-page however the url to the documentation is https://unhead.unjs.io/schema-org/schema/webpage.
Not sure what the right approach would be for this as there are a couple of issues:
Some pages don't need the .replace(/([a-z])([A-Z])/g, '$1-$2') but can do without e.g. defineWebPage and defineWebSite
Details
Currently the name of the composable is normalised to generate the path to the relevant doc in unhead (https://github.com/harlan-zw/nuxt-seo/blob/main/docs/components/content/SchemaOrgNodeList.vue) however this results in invalid urls e.g.
defineWebPage
becomeshttps://unhead.unjs.io/schema-org/schema/web-page
however the url to the documentation ishttps://unhead.unjs.io/schema-org/schema/webpage
.Not sure what the right approach would be for this as there are a couple of issues:
.replace(/([a-z])([A-Z])/g, '$1-$2')
but can do without e.g. defineWebPage and defineWebSiteHappy to help with this just wanted to know what direction the solution should be e.g. some type of mapping or property on each composable?