Skip to content

fix: docusaurus-version should allow duplicate id in different subfolder#1125

Merged
yangshun merged 4 commits intofacebook:masterfrom
endiliey:subdirversioning
Nov 23, 2018
Merged

fix: docusaurus-version should allow duplicate id in different subfolder#1125
yangshun merged 4 commits intofacebook:masterfrom
endiliey:subdirversioning

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