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(v2): fix theme validation for prism field and add tests #3210

Merged

Conversation

teikjun
Copy link
Contributor

@teikjun teikjun commented Aug 5, 2020

Motivation

This PR fixes #3209.
I have moved the validation for the prism field from live-code-block package to theme-classic package - this is the correct place to validate the prism field.
I have also added tests for themeConfig validation.

Have you read the Contributing Guidelines on pull requests?

Yes

Test Plan

Automated tests have been added to check if:

  • prism field accepts valid keys like additionalLanguages.
  • themeConfig accepts valid fields

@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Aug 5, 2020
@docusaurus-bot
Copy link
Contributor

docusaurus-bot commented Aug 5, 2020

Deploy preview for docusaurus-2 ready!

Built with commit fbee5fb

https://deploy-preview-3210--docusaurus-2.netlify.app

@slorber slorber added the pr: bug fix This PR fixes a bug in a past release. label Aug 5, 2020
@slorber slorber merged commit 8f0c00f into facebook:master Aug 5, 2020
@slorber
Copy link
Collaborator

slorber commented Aug 5, 2020

LGTM thanks

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.

Validation error in themeConfig
4 participants