Skip to content

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

Merged
slorber merged 1 commit intofacebook:masterfrom
Josh-Cena:modify-init-template
Jun 15, 2021
Merged

feat(v2): add code block theming in init template#4968
slorber merged 1 commit intofacebook:masterfrom
Josh-Cena:modify-init-template

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>
@Josh-Cena Josh-Cena requested review from lex111 and slorber as code owners June 14, 2021 23:35
@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