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

fix(v2): don't include 404 page in sitemaps #2616

Merged
merged 3 commits into from Apr 18, 2020
Merged

fix(v2): don't include 404 page in sitemaps #2616

merged 3 commits into from Apr 18, 2020

Conversation

RDIL
Copy link
Contributor

@RDIL RDIL commented Apr 16, 2020

Signed-off-by: Reece Dunham me@rdil.rocks

Motivation

Fixes #2605

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

I added a test to Jest to make sure this works.

In addition, you can also look at the sitemap on v2.docusaurus.io vs the deploy preview.

Signed-off-by: Reece Dunham <me@rdil.rocks>
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Apr 16, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Apr 16, 2020

Deploy preview for docusaurus-2 ready!

Built with commit 974167c

https://deploy-preview-2616--docusaurus-2.netlify.app

@yangshun yangshun added the pr: bug fix This PR fixes a bug in a past release. label Apr 17, 2020
Copy link
Contributor

@yangshun yangshun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! This looks great, we can slightly improve the implementation and we'll be good to merge this.

packages/docusaurus-plugin-sitemap/src/createSitemap.ts Outdated Show resolved Hide resolved
packages/docusaurus-plugin-sitemap/src/createSitemap.ts Outdated Show resolved Hide resolved
@RDIL
Copy link
Contributor Author

RDIL commented Apr 17, 2020

Alright. Fixing now.

Signed-off-by: Reece Dunham <me@rdil.rocks>
@RDIL RDIL requested a review from yangshun April 17, 2020 13:18
@RDIL
Copy link
Contributor Author

RDIL commented Apr 17, 2020

Fixed @yangshun 😃

@yangshun yangshun merged commit 614adca into facebook:master Apr 18, 2020
@yangshun
Copy link
Contributor

Thanks!

@RDIL RDIL deleted the fix-sitemap-404-page branch April 18, 2020 14:58
@lex111 lex111 added this to the v2.0.0-alpha.51 milestone Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't include the 404 route in XML sitemaps
5 participants