Skip to content
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

Generate a sitemap #52

Closed
andreasvirkus opened this issue Apr 15, 2018 · 9 comments
Closed

Generate a sitemap #52

andreasvirkus opened this issue Apr 15, 2018 · 9 comments
Labels
type: question or discussion Question or discussion version: next Planned to do or already included in the next(1.0.0) version

Comments

@andreasvirkus
Copy link

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.

@yyx990803 yyx990803 added the type: question or discussion Question or discussion label Apr 15, 2018
@dgpgdev
Copy link

dgpgdev commented Apr 19, 2018

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.

@tomcam
Copy link

tomcam commented Apr 19, 2018

Love this! Hope it's added.

@brandonkelly
Copy link
Contributor

brandonkelly commented May 10, 2018

Sitemap support should be added regardless of blogging support. 🙏

@ulivz ulivz added plugin scope version: next Planned to do or already included in the next(1.0.0) version and removed plugin scope labels Aug 20, 2018
@ekoeryanto
Copy link
Contributor

i implement this with generated sitedata in temp dir

@ulivz
Copy link
Member

ulivz commented Sep 28, 2018

@ekoeryanto You can create a plugin for this.

@ekoeryanto
Copy link
Contributor

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

@ekoeryanto
Copy link
Contributor

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

@ekoeryanto ekoeryanto mentioned this issue Sep 29, 2018
18 tasks
@andreasvirkus
Copy link
Author

andreasvirkus commented Jan 17, 2019

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

@ulivz
Copy link
Member

ulivz commented Jan 29, 2019

Thanks to @ekoeryanto and @andreasvirkus.

@ulivz ulivz closed this as completed Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question or discussion Question or discussion version: next Planned to do or already included in the next(1.0.0) version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants