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 sidebar file name issue in rename-version #762

Merged
merged 1 commit into from
Jun 12, 2018

Conversation

rupeshparab
Copy link
Contributor

@rupeshparab rupeshparab commented Jun 12, 2018

Motivation

Fixes #227 (edited by Endiliey)

To fix the sidebars.json rename-version bug reported here: Bug 227

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

The issue was with sidebar file not being renamed on using rename-version command
To test it you can follow this:

  1. Checkout the master branch of Docusaurus
  2. Use this command to create a new version: yarn run version 1.2.3
  3. Rename the version using this command: yarn run rename-version 1.2.3 1.2.4
  4. Notice the file in versioned_sidebars, it won't have been renamed
  5. Clear all the changes and checkout the branch in this PR
  6. Repeat steps 2 and 3 and notice that the file will be renamed

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

Deploy preview for docusaurus-preview ready!

Built with commit 3258376

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

@endiliey
Copy link
Contributor

Thanks for the PR. A screenshots or gifs would be nice as a test plan rather than just showing the steps

Copy link
Contributor

@JoelMarcey JoelMarcey left a comment

Choose a reason for hiding this comment

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

Good find. Good fix @rupeshparab

💯

Thanks!

@JoelMarcey JoelMarcey merged commit a2b076b into facebook:master Jun 12, 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.

Renaming version doesn't update the sidebars.json file
5 participants