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

replace old blockquotes with admonitions, add codeblocks titles (part 1) #3170

Merged
merged 1 commit into from
Jun 21, 2022

Conversation

Simek
Copy link
Collaborator

@Simek Simek commented Jun 21, 2022

Why

This PR is the first in series, in which I going to replace legacy styling and workarounds with new Docusuaurs features (I have decided to split the changes into few PR so the amount of changes won't be overwhelming for the reviewers).

How

The first change is to replace the the old blockquote blocks which were used for emphasising the content before the Admonitions was a thing. I have chosen the styling and added a custom tile (if needed) based on the current "notes" content.

Ideally, we want to get rid of all blockquote like that, to be able to use the component for the regular quotes, but this might take a longer while, so ATM I have put my focus on the unversioned docs.

The second change is that CodeBlock now supports title parameter, and in this PR I have replaced names in comments by this parameter for the affected CodeBlocks.

Test plan

The changes have been tested by running the docs website locally.

@netlify
Copy link

netlify bot commented Jun 21, 2022

Deploy Preview for react-native ready!

Name Link
🔨 Latest commit 4593cf2
🔍 Latest deploy log https://app.netlify.com/sites/react-native/deploys/62b1fe3d8684990009336855
😎 Deploy Preview https://deploy-preview-3170--react-native.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@Simek Simek force-pushed the admonitions-and-titled-codeblock-part1 branch from aa76f5d to 4593cf2 Compare June 21, 2022 17:22
Copy link
Contributor

@cortinico cortinico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@Simek Simek merged commit f5a078a into facebook:main Jun 21, 2022
@Simek Simek deleted the admonitions-and-titled-codeblock-part1 branch June 21, 2022 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants