Vuepress: Generate a sitemap

Created on 15 Apr 2018  路  9Comments  路  Source: vuejs/vuepress

Since I saw blogging support is planned, I thought I'd create a request for sitemap support as well (and maybe even RSS feed while we're at it?). Could try and work on it as well.

question or discussion next

Most helpful comment

Sitemap support should be added regardless of blogging support. 馃檹

All 9 comments

hello i made this features on my fork

https://github.com/dgpgdev/vuepress

to enabled just add a new config property in config file

  dest: 'vuepress',
  sitemap: {
    filename: 'sitemap.txt',
    domain: 'http://test.com'
  },
  base:'/base-doc/',

domain are exact domain name to host doc and filename. When you build your files (build, not dev), you can see your sitemap file ex:

http://test.com/base-doc/index.html
http://test.com/base-doc/config/index.html
http://test.com/base-doc/default-theme-config/index.html
http://test.com/base-doc/guide/index.html
etc...

update
Now you can generate txt or xml sitemap. Check extension file from filename property in filename.
By default if filename is empty a sitemap.txt will be created.

Love this! Hope it's added.

Sitemap support should be added regardless of blogging support. 馃檹

i implement this with generated sitedata in temp dir

@ekoeryanto You can create a plugin for this.

I am doing this, both for v0.x and v1.0.x

I extracted my snippet here for v0.x
https://github.com/ekoeryanto/vuepress-plugin-sitemap

There's also a plugin now for RSS/Atom/JSON feeds: https://github.com/webmasterish/vuepress-plugin-feed

Thanks to @ekoeryanto and @andreasvirkus.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FadySamirSadek picture FadySamirSadek  路  3Comments

alinnert picture alinnert  路  3Comments

sankincn picture sankincn  路  3Comments

ederchrono picture ederchrono  路  3Comments

zeke picture zeke  路  3Comments