zerodevx / static-sitemap-cli

CLI to generate XML sitemaps for static sites from local filesystem
ISC License
22 stars 3 forks source link

Feature Request: Option to create sitemaps of all file-types in V2 #13

Closed mrowell closed 2 years ago

mrowell commented 2 years ago

We use static-sitemap-cli to create sitemaps of our media and non-html document assets. We don't analyse the content of these files for links. We just create a sitemap of the list of files from the source directory.

Would it be possible to add an option to allow the creation site maps of all file types in V2?

I totally would understand if this is outside of the scope of what you are trying to achieve with static-sitemap-cli.

Thanks for sharing your work. Marcus.

zerodevx commented 2 years ago

Oh I see - I'll add this feature.

zerodevx commented 2 years ago

Hey I've added the --match option that'll allow you to trawl for any file types. Hope this fits your use-case. Here's a usage example: https://github.com/zerodevx/static-sitemap-cli#generate-txt-sitemap-for-image-assets

mrowell commented 2 years ago

@zerodevx Awesome. Thanks for implementing this for us.

I've tested it and it all working great.

Thank you. Marcus.