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: docusaurus-version should allow duplicate id in different subfolder #1125

Merged
merged 4 commits into from
Nov 23, 2018

Conversation

endiliey
Copy link
Contributor

@endiliey endiliey commented Nov 23, 2018

Motivation

Fix #1113

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Created two files ecosystem/bar.md with id: bar and hydra/bar.md with id: bar
First, cut version 1.0.0 and a versioned docs is created
After that, cut version 2.0.0 again

Note that I added some debugging console.log for easy purpose

Before

Note that the versioning command is confused with id bar since it is not namespaced according to subdirectory.

image

It incorrectly creates an extra version-2.0.0 file when there is no doc changes
image

After
image

Since there is no change, no new files created
image

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Nov 23, 2018
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 755ed04

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

@endiliey endiliey requested a review from yangshun November 23, 2018 06:00
@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit 2b2987d

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

@endiliey endiliey changed the title fix: docusarus-version should allow duplicate id in different subfolder fix: docusaurus-version should allow duplicate id in different subfolder Nov 23, 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