-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
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(v2): Allow null as valid for title of item in footer links. #4267
Conversation
…ooter module properly handles empty case
Hi @ben-qnimble! 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! |
[V1] Deploy preview failure Built without sensitive environment variables with commit 070a8ca https://app.netlify.com/sites/docusaurus-1/deploys/6033e229da9d4d000711a99c |
Size Change: 0 B Total Size: 544 kB ℹ️ View Unchanged
|
Deploy preview for docusaurus-2 ready! Built without sensitive environment variables with commit 070a8ca |
⚡️ Lighthouse report for the changes in this PR:
Lighthouse ran on https://deploy-preview-4267--docusaurus-2.netlify.app/classic/ |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks! |
make sense, thanks |
Motivation
I want to make the category title in the footer links disappear. This is particularly useful when you do not have many links, so displaying category headings for the links isn't necessarily appropriate. Conveniently, the footer plugin already handles this by testing if the title is null and if so skipping writing the h4 section. Thus, the only change is to allow a null value for the title in the classic theme validation.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
I have tested this change change by setting a footer title to both to null:
and verifying that there are no error and that the title is not displayed.