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

docs: update and shorten server example #22583

Merged
merged 4 commits into from Aug 11, 2023
Merged

docs: update and shorten server example #22583

merged 4 commits into from Aug 11, 2023

Conversation

iiio2
Copy link
Contributor

@iiio2 iiio2 commented Aug 10, 2023

πŸ”— Linked issue

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Here the single line export default defineEventHandler((event) => `Hello, ${event.context.params.name}!`) is long. That is why the full code becomes blur in the doc.
blur
It is not readable and we cannot see the full code by default in the doc. Making it two lines removes the blur issue.

I think it is required because by default the line becomes blur in the doc. we cannot see the entire line because of long single line of code. That is why we can make it readable.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@stackblitz
Copy link

stackblitz bot commented Aug 10, 2023

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@nuxt-studio
Copy link

nuxt-studio bot commented Aug 10, 2023

βœ… Live Preview ready!

Name Edit Preview Latest Commit
Nuxt Docs Edit on Studio β†—οΈŽ View Live Preview a6b9ad8

@iiio2 iiio2 changed the title docs: fix blur for long line docs: fix blur issue for single long line Aug 10, 2023
@iiio2 iiio2 requested a review from danielroe August 11, 2023 03:47
Co-authored-by: Horu <73709188+HigherOrderLogic@users.noreply.github.com>
@danielroe danielroe changed the title docs: fix blur issue for single long line docs: update and shorten server example Aug 11, 2023
@danielroe danielroe merged commit 20efac7 into nuxt:main Aug 11, 2023
3 checks passed
@github-actions github-actions bot mentioned this pull request Aug 11, 2023
@iiio2 iiio2 deleted the docs-blur branch August 11, 2023 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants