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: migrate case studies #2861

Merged
merged 14 commits into from
Apr 24, 2024

Conversation

vishvamsinh28
Copy link
Contributor

migrated case studies

Copy link

netlify bot commented Apr 10, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 313d590
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/6629434349128d00087bdc69
😎 Deploy Preview https://deploy-preview-2861--asyncapi-website.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 configuration.

@@ -148,7 +148,7 @@ function CodeComponent({ children, className = '', metastring = '', ...rest }: C
caption={caption}
className={`${className || ''} rounded`}
language={language}
showLineNumbers={children.split('\n').length > 2}
showLineNumbers={children && typeof children === 'string' && children.split('\n').length > 2 ? true : undefined}
Copy link
Member

Choose a reason for hiding this comment

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

Why are we doing this?

@akshatnema
Copy link
Member

image

I can see that Code component is not rendered correctly.

@vishvamsinh28
Copy link
Contributor Author

@akshatnema @anshgoyalevil code component issue fixed

Copy link
Member

@sambhavgupta0705 sambhavgupta0705 left a comment

Choose a reason for hiding this comment

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

@vishvamsinh28 please remove adopters.json file

@vishvamsinh28
Copy link
Contributor Author

@sambhavgupta0705 Done

Comment on lines 261 to 263
pre: (props: React.HTMLProps<HTMLPreElement>) => {
return CodeComponent((props.children as React.ReactElement)?.props);
},
Copy link
Member

Choose a reason for hiding this comment

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

Instead of using return in block, directly return the CodeComponent using arrow function.

Copy link
Member

@akshatnema akshatnema left a comment

Choose a reason for hiding this comment

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

image

There are differences in formatting of pages inside case studies. Do checkout what has gone wrong while creating CSS for custom elements.

@vishvamsinh28
Copy link
Contributor Author

@akshatnema css issue fixed

Comment on lines 261 to 263
pre: (props: React.HTMLProps<HTMLPreElement>) => {
return CodeComponent((props.children as React.ReactElement)?.props);
},
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
pre: (props: React.HTMLProps<HTMLPreElement>) => {
return CodeComponent((props.children as React.ReactElement)?.props);
},
pre: (props: React.HTMLProps<HTMLPreElement>) => CodeComponent((props.children as React.ReactElement)?.props),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually made this change but why it wasn't included in the commit 🤔 lemme push changes again

@akshatnema
Copy link
Member

/rtm

@asyncapi-bot asyncapi-bot merged commit 727dfb4 into asyncapi:migrate-ts Apr 24, 2024
14 checks passed
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.

4 participants