A plugin for Vuepress to creat

Robots.txt file plugin for Vuepress Install NPM

npm install vuepress-plugin-robots Usage Vuepress v0.x

NOT SUPPORT

Vuepress v1.x

Put your options in .vuepress/config.js file, please note: host option is mandatory.

// .vuepress/config.js module.exports = { plugins: { 'robots': { /** * @host * Mandatory, You have to provide the host URL */ host: "https://your-website", /** * @disallowAll * Optional: if it's true, all others options are ignored and exclude all robots from the entire server */ disallowAll: false, /** * @allowAll * Optional: if it's true and @disallowAll is false, all others options are ignored and allow all robots complete access */ allowAll: true, /** * @sitemap * Optional, by default: sitemap.xml */ sitemap: "/sitemap.xml", /** * @policies * Optional, by default: null */ policies: [ { userAgent: '*', disallow: [ '/admin','/login' ], allow: [ // Optional: Allowed paths. 'products','blog' ] } ] }, } } Thanks

Thanks to generate-robotstxt

Changelog License

MIT

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。