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
Allow arbitrary extensions (not just .html files) #53
base: master
Are you sure you want to change the base?
Conversation
Definitely open to this, especially since it makes this plugin more useful for static file generation in general—but wondering whether it would be better to either:
What do you think? cc @KyleAMathews, would either of these changes impact Gatsby in any negative way? |
Nope, shouldn't be a problem. Gatsby fully controls paths so it'd be easy to adjust if there's any breaking changes. |
@KyleAMathews not that it affects Gastby in any way, but what are your thoughts from an API design perspective? Do you have a preference? |
My personal preference is always for "clean" urls e.g. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it should work fine. Can it be merged? I am also having this problem.
Hey, We are using this plugin on Docusaurus 2 and have a few issues due to using That would be nice if it was possible to customize the fs filename path creation. @markdalgleish do you still maintain this project? Otherwise, I'd probably maintain my own fork. |
I also prefer "clean URLs" without extensions, but I've a similar problem on my Gatsby / Novela / Netlify blog here: https://sebastienlorber.com/records-and-tuples-for-react |
This may be too specific of a usage case but I needed to generate arbitrary file extensions, specifically .liquid files. Perhaps it will help someone?