Open game-swoosh opened 10 months ago
I think that swift-docc-render
should be responsible for the sitemap, as it's a web artifact, and docc itself just generates the inputs for it, right?
@natikgadzhi && @game-swoosh : Definitely, this is for the renderer.
Does this exist and if not, is it something that will be added?
This is not something that exists today.
I think a sitemap could potentially be a useful addition, but there are a couple of interesting quirks that may make it difficult to implement in the renderer itself:
.doccarchive
artifact produced by DocC can be hosted as a standalone website, it can also be integrated into an existing website, so there could be some conflict with any sitemap generated for the docs and an existing website that it is being integrated into on the hosting side (probably not the common case though, so maybe not a big issue)If someone were to look into supporting this as a new feature/enhancement, I imagine that it may be much easier to implement in DocC itself—the logic used to generate the RenderIndex JSON file (which powers the sidebar navigation) would likely be very similar and maybe even tweaked to also generate a sitemap, since the data would be pretty similar.
@mportiz08 Sounds good. I'll transfer this issue back to DocC.
Hey 👋, would like to add to the discussion that a sitemap could help a lot with SEO. In particular, I'm using DocC for the new design of the wwdcnotes.com website, but Google doesn't seem to find a sitemap. Not sure if it'll be able to find all notes, the Search Console seems to struggle. So I'd love to see this feature as well. 👍
@Jeehut Aren't we yet used to having bad SEO for anything Swift related? I thought it's our style 😅
before anyone would take it seriously: it's just a joke I couldn't resist
Feature Name
Sitemap for DocC Hosted Website
Description
It seems that DocC does not generate a sitemap. When I navigate to a hosted DocC on a website, I would expect to see sitemap with a list of all the individual links.
I also tried searching for the sitemap at Apple's Documentation site which is made with DocC at this URL: https://developer.apple.com/documentation/technologies
I can't seem to find it at Apple's Documentation site either. If it does exist, apologies for not seeing it.
Does this exist and if not, is it something that will be added?
Motivation
No response
Importance
No response
Alternatives Considered
No response