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: replace use of deepmerge with _.merge #1430

Merged
merged 2 commits into from
May 2, 2019
Merged

fix: replace use of deepmerge with _.merge #1430

merged 2 commits into from
May 2, 2019

Conversation

yangshun
Copy link
Contributor

@yangshun yangshun commented May 1, 2019

Motivation

While answering this SO question, I found that Docusaurus did support the markdownOptions in siteConfig but docs for it were removed. Testing that option made me realize that we were using deepmerge wrongly (the signatures didn't match). Fixes here:

  • Since we have Lodash installed, use Lodash
  • Add back documentation for markdownOptions

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Temporarily added the linkTarget: '_blank' option to siteConfig and saw that links opened in new tabs.

Related PRs

(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/facebook/docusaurus, and link to your PR here.)

@yangshun yangshun requested a review from endiliey as a code owner May 1, 2019 17:18
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label May 1, 2019
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented May 1, 2019

Deploy preview for docusaurus-2 ready!

Built with commit e9f9cc3

https://deploy-preview-1430--docusaurus-2.netlify.com

@docusaurus-bot
Copy link
Contributor

Deploy preview for docusaurus-preview ready!

Built with commit a90488d

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

@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented May 1, 2019

Deploy preview for docusaurus-preview ready!

Built with commit e9f9cc3

https://deploy-preview-1430--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.

lgtm wohoo

@endiliey endiliey merged commit 64fdafb into master May 2, 2019
@endiliey endiliey deleted the deepmerge branch May 2, 2019 15:00
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