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(core): configValidation should allow inline theme functions #6496

Merged
merged 1 commit into from
Jan 28, 2022

Conversation

slorber
Copy link
Collaborator

@slorber slorber commented Jan 28, 2022

Motivation

It is technically legal/valid and it works to provide a theme as an inline function instead of a module name

The validation was wrong, and will now accept such inline function

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

tests

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Jan 28, 2022
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jan 28, 2022
@netlify
Copy link

netlify bot commented Jan 28, 2022

✔️ [V2]

🔨 Explore the source changes: 878d7c6

🔍 Inspect the deploy log: https://app.netlify.com/sites/docusaurus-2/deploys/61f41a5104c1a30007bf11e5

😎 Browse the preview: https://deploy-preview-6496--docusaurus-2.netlify.app

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 66
🟢 Accessibility 100
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 92

Lighthouse ran on https://deploy-preview-6496--docusaurus-2.netlify.app/

@github-actions
Copy link

Size Change: 0 B

Total Size: 755 kB

ℹ️ View Unchanged
Filename Size
website/.docusaurus/globalData.json 47 kB
website/build/assets/css/styles.********.css 105 kB
website/build/assets/js/main.********.js 573 kB
website/build/index.html 30.1 kB

compressed-size-action

@slorber slorber merged commit f5f598a into main Jan 28, 2022
@slorber slorber deleted the slorber/fix-theme-schema branch January 28, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Signed Facebook CLA pr: bug fix This PR fixes a bug in a past release.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants