Generate Site Map from markdown
Node.js
npm install markdown-rss-generator-webpack-plugin
In your Webpack Config file
const MarkdownSiteMapGeneratorPlugin = require("markdown-sitemap-generator-webpack-plugin").default;
//define the options
const option = {
host: Config.url,
links: [], //links that you also want to include in the site map
route: "/items",
outputPath:"sitemap.txt"
}
//In the plugin section
plugins: [
new MarkdownSiteMapGeneratorPlugin(option)
]