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(tags): improve writing style #3411

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bandantonio
Copy link
Contributor

@bandantonio bandantonio commented Nov 19, 2024

Description

  • Made doc sections more consistent
  • Replace duplicated styling in mermaid diagram with classes
  • Update yaml examples to use consistent formatting and descriptions

Related issue(s)
Fixes #3410
See also #3375

Summary by CodeRabbit

  • Documentation
    • Restructured and clarified the "Tags" document in AsyncAPI for improved readability.
    • Simplified definitions and enhanced explanations of the tags object and its properties.
    • Expanded usage section for tags at the info level to clarify their categorization role.
    • Updated examples and visual representations for consistency and readability.

- Made doc sections more consistent
- Replace duplicated styling in mermaid diagram with classes
- Update yaml examples to use consistent formatting and descriptions
Copy link

coderabbitai bot commented Nov 19, 2024

Walkthrough

The pull request involves significant restructuring and rephrasing of the "Tags" document in the AsyncAPI documentation. The changes simplify definitions, clarify the roles of the tags object and its properties, and enhance the overall flow of the document. Visual representations and examples have been updated for consistency and readability. The document's organization has been improved to logically group and categorize tags based on their usage across the AsyncAPI framework.

Changes

File Change Summary
markdown/docs/concepts/asyncapi-document/tags.md Restructured and rephrased content for clarity; simplified definitions; refined explanations of tags object and its properties; expanded usage at info level; improved examples and visual representations; enhanced logical flow and organization.

Assessment against linked issues

Objective Addressed Explanation
Improve writing style in AsyncAPI documentation (#3410)

Possibly related PRs

Suggested reviewers

  • asyncapi-bot-eve
  • devilkiller-ag
  • sambhavgupta0705
  • BhaswatiRoy
  • J0SAL
  • TRohit20
  • VaishnaviNandakumar
  • quetzalliwrites

🐇 In the land of tags, where clarity reigns,
A rabbit hops forth, with joy in its veins.
With words now so clear, and examples so bright,
The AsyncAPI shines, a true guiding light!
Let's gather our tags, in harmony's dance,
For structure and flow, give clarity a chance! 🌟


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Nov 19, 2024

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ec142f3
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/673bdeab2c060c0008872dda
😎 Deploy Preview https://deploy-preview-3411--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.

Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.77%. Comparing base (b6b0573) to head (ec142f3).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3411   +/-   ##
=======================================
  Coverage   67.77%   67.77%           
=======================================
  Files          21       21           
  Lines         664      664           
=======================================
  Hits          450      450           
  Misses        214      214           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Nov 19, 2024

⚡️ Lighthouse report for the changes in this PR:

Category Score
🔴 Performance 32
🟢 Accessibility 98
🟢 Best practices 92
🟢 SEO 100
🔴 PWA 33

Lighthouse ran on https://deploy-preview-3411--asyncapi-website.netlify.app/

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (4)
markdown/docs/concepts/asyncapi-document/tags.md (4)

14-14: Consider using "brief" instead of "short".

To strengthen the writing style, consider replacing "short" with "brief" in the description property definition.

-- `description`: A short description explaining the tag's purpose or usage.
++ `description`: A brief description explaining the tag's purpose or usage.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...e: The name of the tag. - description`: A short description explaining the tag'...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~14-~14: Consider using the synonym “brief” (= concise, using a few words, not lasting long) to strengthen your wording.
Context: ...The name of the tag. - description: A short description explaining the tag's purpos...

(QUICK_BRIEF)


66-67: Improve bullet point consistency.

The bullet points have inconsistent formatting. Consider making them parallel in structure.

-- criteria like location, environment type (like production or development), and unique server features.
-- specific tags or labels.
++ Location, environment type (production/development), and unique server features
++ Specific tags and labels for server identification

Line range hint 239-254: Fix YAML indentation.

The YAML example needs consistent indentation for better readability.

-name: SimpleSignup
-summary: A simple UserSignup example message
-tags: 
-    - name: userSignUp
-      description: some message related to user signup
-headers:
-  correlationId: my-correlation-id
-  applicationInstanceId: myInstanceId
-payload:
-  user:
-    someUserKey: someUserValue
-  signup:
-    someSignupKey: someSignupValue
+name: SimpleSignup
+summary: A simple UserSignup example message
+tags: 
+  - name: userSignUp
+    description: some message related to user signup
+headers:
+  correlationId: my-correlation-id
+  applicationInstanceId: myInstanceId
+payload:
+  user:
+    someUserKey: someUserValue
+  signup:
+    someSignupKey: someSignupValue

338-338: Remove unused link reference.

The link reference [components-field] is not used in the document.

-[components-field]: /docs/concepts/asyncapi-document/structure#components-field
🧰 Tools
🪛 Markdownlint

338-338: Unused link or image reference definition: "components-field"
Link and image reference definitions should be needed

(MD053, link-image-reference-definitions)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between b6b0573 and ec142f3.

📒 Files selected for processing (1)
  • markdown/docs/concepts/asyncapi-document/tags.md (14 hunks)
🧰 Additional context used
🪛 LanguageTool
markdown/docs/concepts/asyncapi-document/tags.md

[uncategorized] ~13-~13: Loose punctuation mark.
Context: ...ains the following properties: - name: The name of the tag. - description: A...

(UNLIKELY_OPENING_PUNCTUATION)


[uncategorized] ~14-~14: Loose punctuation mark.
Context: ...e: The name of the tag. - description`: A short description explaining the tag'...

(UNLIKELY_OPENING_PUNCTUATION)


[style] ~14-~14: Consider using the synonym “brief” (= concise, using a few words, not lasting long) to strengthen your wording.
Context: ...The name of the tag. - description: A short description explaining the tag's purpos...

(QUICK_BRIEF)


[uncategorized] ~15-~15: Loose punctuation mark.
Context: ...tag's purpose or usage. - externalDocs: Additional external documentation for t...

(UNLIKELY_OPENING_PUNCTUATION)

🪛 Markdownlint
markdown/docs/concepts/asyncapi-document/tags.md

338-338: Unused link or image reference definition: "components-field"
Link and image reference definitions should be needed

(MD053, link-image-reference-definitions)

🔇 Additional comments (3)
markdown/docs/concepts/asyncapi-document/tags.md (3)

Line range hint 22-60: LGTM! Clear explanation with consistent styling.

The section effectively explains tags in the info object context, with well-structured visual representation and practical examples.


Line range hint 116-164: LGTM! Well-structured explanation with clear examples.

The section effectively explains channel tags with appropriate visual aids and examples.


Line range hint 165-216: LGTM! Comprehensive coverage of operations tags.

The section provides a thorough explanation with well-structured examples and diagrams.

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.

[📑 Docs]: Concepts/AsyncAPI Document/Tags: Improve writing style
2 participants