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

Configure sitemap depending on whether clean URLs enabled #765

Merged
merged 2 commits into from
Jun 12, 2018

Conversation

JoelMarcey
Copy link
Contributor

Motivation

If you have cleanUrl enabled, make the sitemap have no .html extension at the end too. Otherwise keep the .html extension.

Ref: #744 (comment)

Have you read the Contributing Guidelines on pull requests?

Yes.

Test Plan

screenshot 2018-06-12 11 02 14

Related PRs

#744

@JoelMarcey JoelMarcey requested review from yangshun and endiliey June 12, 2018 18:04
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 12, 2018
let links = enabledLanguages.map(lang => {
let langUrl = lang.tag + url;
return {lang: lang.tag, url: langUrl};
});
urls.push({url, changefreq: 'weekly', priority: 0.5, links});
});

let htmlFiles = glob.sync(CWD + '/pages/**/*.html');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This variable was unused, so I removed it.

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Jun 12, 2018

Deploy preview for docusaurus-preview ready!

Built with commit 4b8d80c

https://deploy-preview-765--docusaurus-preview.netlify.com

Copy link
Contributor

@endiliey endiliey left a comment

Choose a reason for hiding this comment

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

Looks good 👍 awesome work @JoelMarcey

@endiliey endiliey merged commit c2ff413 into facebook:master Jun 12, 2018
s-pace pushed a commit to algolia/docsearch-configs that referenced this pull request Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants