-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
refactor(v2): merge linkify function used in blog and docs and align properties #4402
Conversation
[V1] Deploy preview success Built with commit 01a6fae |
Deploy preview for docusaurus-2 ready! Built with commit 01a6fae |
Lighthouse failed for unknown reason |
Thanks, this looks like a nice code dedup refactor that I wanted to do for a while :) I'm going to tweak some minor things before merging |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4402--docusaurus-2.netlify.app/classic/ |
Basically what I did was simplify the signature of the replaceMarkdownLink function, remove the generics and return broken links instead of using a callback (will be simpler to test). BTW we have tests in docs and blog, but if you want to add more isolated tests for this newly extracted method that could be useful ;) |
Motivation
This PR is a continuation of work done in #4391 that aligns names of properties,
i'm unsure what is a politic here on changes, that's why i prepared 2 separate PR's for this
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
there is no change in functionality and all unit test should pass, linking still should work in docs and in blog,
it can be tested by clicking in one of links in docs, eg.
https://deploy-preview-4391--docusaurus-2.netlify.app/classic/docs/contributing#get-involved
Related PRs
#4391