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

feat(v2): add code block theming in init template #4968

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

Josh-Cena
Copy link
Collaborator

Motivation

Fix #4812. This makes the initialized site more closely resemble the Docusaurus website, because currently the light theme for code blocks seems broken, causing quite some confusion.

Have you read the Contributing Guidelines on pull requests?

Yep

Test Plan

The same configuration is used by the Docusaurus website, so it should be working.

The only thing I'm not sure of is that I had to require globally to silence ESLint errors, while for new users it might be more straightforward to require it within the object definition.

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Jun 14, 2021
@netlify
Copy link

netlify bot commented Jun 14, 2021

✔️ [V2]
Built without sensitive environment variables

🔨 Explore the source changes: 255cc1d

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

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

@github-actions
Copy link

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 63
🟢 Accessibility 97
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

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

@slorber
Copy link
Collaborator

slorber commented Jun 15, 2021

thanks 👍

@slorber slorber added pr: polish This PR adds a very minor behavior improvement that users will enjoy. pr: new feature This PR adds a new API or behavior. and removed pr: polish This PR adds a very minor behavior improvement that users will enjoy. labels Jun 15, 2021
@slorber slorber merged commit e2acda6 into facebook:master Jun 15, 2021
@Josh-Cena Josh-Cena deleted the modify-init-template branch June 15, 2021 10:24
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: new feature This PR adds a new API or behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect theme for code blocks in light mode
3 participants