FransBouma / DocNet

Your friendly static documentation generator, using markdown files to build the content.
http://fransbouma.github.io/DocNet/
248 stars 36 forks source link

Generate sitemap #55

Closed GeertvanHorrik closed 7 years ago

GeertvanHorrik commented 7 years ago

To create improved search capabilities, I think it would help to generate a sitemap?

Let me know if you are interested, then I can try to create a PR.

FransBouma commented 7 years ago

would that be equal to an expanded ToC?

GeertvanHorrik commented 7 years ago

Yes, sort of, but it's for SEO

https://en.wikipedia.org/wiki/Sitemaps

FransBouma commented 7 years ago

Reading that it doesn't tell me how sitemaps add something the pages currently not already provide: the sitemap, an xml file it seems, can contain extra info about the pages, but what extra info are you going to provide in the sitemap.xml file?

All pages are reachable through the tocs on the pages, so the crawler of a search engine can reach and index all pages already, and while crawling can find the relationship between the pages. Not sure how a sitemap can add to this, could you elaborate a bit in what way a sitemap can be beneficial?

GeertvanHorrik commented 7 years ago

You are right, the crawler will probably go through all of this via the ToC anyway. Sitemaps are probably good for dynamic content, but since we are generating static (always linked via the ToC) content, this might be overkill.

The only benefit would be the "last updated" timestamp, but that's it.

FransBouma commented 7 years ago

yeah thought about that too, however 'last updated' is the same for all files, all files are generated in 1 go all the time, so that should be read from the file date of the source file... it's also to be seen whether these files are still used by search engines. E.g. what Google uses is unknown.

GeertvanHorrik commented 7 years ago

Ok, then let's close this issue, thanks for the discussion.