-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add sitemap generation support to HTML renderer #1618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
Any news on this one? |
|
Just rebased the PR. |
|
The feature will be very helpful, also for me. Hope this will be merged! |
|
Looking forward to this feature! :D |
|
Any update? 🙂 |
|
Is there anything I can do to help get this merged? |
|
Can you provide some more context on sitemaps in general? What benefits does it have? Shouldn't crawlers be able to crawl the summary index? I'm not very familiar with them, so if you could provide some general information, that would be helpful. This looks like it needs some tests. |
|
search engines like google, yahoo, bing, etc.. usually use sitemap xml to crawl every page of the website. this is good so that the website is easily indexed by search engines. |
|
I believe a site map hints to a search engine what to index and what not to index. So unnecessary or outdated files can be skipped if they are not in the map. Site maps are also more reliable wrt page ranking these days because things like a nav bar pointing to all the pages made simply counting the number of backlinks unreliable as a metric. |
|
Well, the info about why this would be useful has been said above 😛 What should be tested? I can only think of comparing the sitemap that would be output from the test book against a reference, but I believe that would produce a bunch of false positives. |
|
@ISSOtm with regards to what should be tested, just from checking out the PR, here are my thoughts:
I'm happy to collaborate or help on any of the tests if you want. 😄 Also just want to say +1 to this comment you left: |
|
Thanks @brettchalupa! I'd be happy if you could give me some strings that would be useful for testing I'll begin writing the rest of the tests and the |
|
@ISSOtm here are some strings for that unit test that might be helpful (even if it's unlikely some of these may get passed through in the grand scheme of things, it's probably okay to be extra thorough):
|
|
Any movement on this? It is still causing issues with Google indexing. |
commit 18404c4bc22be7cd8c598c6cf033909c92e80dfe Merge: 333873a 2c3df28 Author: Kara <lunarautomaton6@gmail.com> Date: Thu Sep 28 10:50:59 2023 -0500 Merge branch 'master' into sitemap # Conflicts: # Cargo.toml # src/renderer/html_handlebars/hbs_renderer.rs commit 333873a Author: ISSOtm <eldredhabert0@gmail.com> Date: Fri Jul 30 18:29:48 2021 +0200 Add sitemap generation support to HTML renderer Fixes rust-lang#1491
|
Any news here? |
|
Sorry, I've been dedicating my time elsewhere, as contribution to mdBook is very difficult due to lack of available maintainer time. I'd be happy to let someone else take this PR to the finish line in my stead. |
|
☔ The latest upstream changes (possibly #2681) made this pull request unmergeable. Please resolve the merge conflicts. |
Fixes #1491
Mergeable as-is, but there is optional work:
<lastmod>from.mdfile modification time?.join()overwrites themI will work on them if maintainers think they're a good thing.