-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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(create-docusaurus): add useBaseUrl for image URLs #6368
Conversation
This is already provided by the classic template and in TypeScript template wasn't updated.
Hi @alias-mac! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks! |
Thanks! We also have some links that are not using |
✔️ [V2] 🔨 Explore the source changes: 5080857 🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61e23fcc115705000772cddc 😎 Browse the preview: https://deploy-preview-6368--docusaurus-2.netlify.app |
@Josh-Cena can you clarify which links are missing the |
Oh, I realized that links automatically have base URL prepended :D Thanks! |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-6368--docusaurus-2.netlify.app/ |
Motivation
This is already provided by the classic template and in TypeScript template wasn't updated.
Based on the documentation it is better to use
useBaseUrl
and I don't see the benefit of repeating the same function call in theFeatureList
array.Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Without this change it looks like this:
![Screen Shot 2022-01-14 at 19 27 35](https://user-images.githubusercontent.com/456140/149607242-720cfcef-044e-4b9c-8ce2-86f03ea3fb29.png)
With the change applied the images load correctly:
![Screen Shot 2022-01-14 at 19 29 43](https://user-images.githubusercontent.com/456140/149607270-016d3cb7-4a30-4959-be8b-7efe8d565267.png)