Vuepress: Support different file extensions

Created on 10 May 2018  路  3Comments  路  Source: vuejs/vuepress

I'd like to use VuePress to generate an RSS feed (or a sitemap, but there is an open issue already on making that built in), but as VuePress always generates HTML files, I'd like to propose a way around that. Given a filename of something.ext.md, then VuePress should generate something.ext, not something.html. If something.md is used, then the default is HTML.

Most helpful comment

Let me add a bit more clarification. Consider an RSS feed, or sitemap. Both are static. Both could easily be generated by VuePress if we could simply output to a non-HTML file (and support suppressing layout). These are both things that many static site generators support now.

All 3 comments

since VuePress is ONLY a static site generator, we DON'T plan to support this. and for such functionality, you should finish it by your own build process.

How is an XML file not static though? Or JSON?

Let me add a bit more clarification. Consider an RSS feed, or sitemap. Both are static. Both could easily be generated by VuePress if we could simply output to a non-HTML file (and support suppressing layout). These are both things that many static site generators support now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

harryhorton picture harryhorton  路  3Comments

ynnelson picture ynnelson  路  3Comments

cyrilf picture cyrilf  路  3Comments

FadySamirSadek picture FadySamirSadek  路  3Comments

shaodahong picture shaodahong  路  3Comments