-
Notifications
You must be signed in to change notification settings - Fork 278
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
Human readable stylesheets #273
Comments
There is an option to generate an uncompressed sitemap, is that not what
you're looking for?
…On Tue, Apr 18, 2017 at 5:19 AM James Gemmell ***@***.***> wrote:
I noticed there's no option to configure a stylesheet for generated
sitemaps. Having a human-readable sitemap can often be useful for
debugging. Is there any intention to add a feature like this to the
roadmap? More than happy to help out with a PR if maintainers are
interested.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#273>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AAF0krK6-i0I92ZH5V-YUKJT2bsgT1nPks5rxCurgaJpZM4M_0ml>
.
|
Not exactly. For example, in the Wordpress ecosystem a plugin made by Yoast generates styled xml sitemaps with linkable locations. Here's what it looks like. A styled sitemap is a little easier to digest than the document tree shown by most browsers when the stylesheet isn't present. Can be handy to confirm that everything is in order. I'm just proposing an optional config option that can point to a stylesheet. |
Would the user would have to host their own stylesheet? Or is there a public one we can use? |
This isn't a priority for most people. I'd consider including a stylesheet if it was hosted remotely and was reliable. |
I came across this need today @kjvarga. I monkey patched for now, but I could submit a pr to make this optional if you want. Something like:
That would add the reference to the sitemap:
We could include a simple example of a xsl file to help people get started. |
I noticed there's no option to configure a stylesheet for generated sitemaps. Having a human-readable sitemap can often be useful for debugging (imagine you're not a developer and reading raw XML or ruby code is daunting). Is there any intention to add a feature like this to the roadmap? More than happy to help out with a PR if maintainers are interested.
The text was updated successfully, but these errors were encountered: