Skip to content

Conversation

@vishvamsinh28
Copy link
Contributor

@vishvamsinh28 vishvamsinh28 commented Nov 10, 2025

Added a new guide for creating and using short URLs on the website, including best practices, syntax, step-by-step instructions, and examples.

asyncapi/website#3005

cc @aeworxet

Summary by CodeRabbit

  • Documentation
    • Added a guide for creating short, memorable redirect links using Netlify-powered redirects. Covers required URL prefix (/s/), processing order (top-to-bottom, first-match), where to place redirect rules, single-line redirect syntax, supported status codes (301, 302) with examples, and a step-by-step workflow for adding, documenting, and validating new redirects via pull requests and preview deployments.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Nov 10, 2025

Walkthrough

Adds a new documentation guide at docs/040-guides/create-short-urls.md describing how to create Netlify-powered short redirects for the site, including public/_redirects location, /s/ prefix constraint, rule syntax and ordering (first-match), supported status codes (301/302), examples, and PR validation workflow.

Changes

Cohort / File(s) Summary
Documentation
docs/040-guides/create-short-urls.md
New guide added explaining Netlify public/_redirects: purpose, /s/ prefix requirement, processing order (top-to-bottom, first match), single-line rule syntax (source, destination, status), supported status codes (301/302) with examples, and a PR/deploy-preview workflow for adding and validating short URLs.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Single new Markdown file; pay attention to:
    • Frontmatter and metadata (if applicable).
    • Accuracy of public/_redirects syntax, ordering, and /s/ constraint.
    • Clarity and correctness of examples and PR validation steps.

Poem

🐇
I nibble paths and trim them neat,
Small hops that make the journey fleet,
One line to point, one rule to send,
Short trails that guide from end to end,
A rabbit's joy—links made complete. 🥕

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and specifically describes the main change: adding documentation for short URLs on the website.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d793020 and 84bdb08.

📒 Files selected for processing (1)
  • docs/040-guides/create-short-urls.md (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/040-guides/create-short-urls.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: preview

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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: 4

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b66af3b and 51307f0.

📒 Files selected for processing (1)
  • docs/040-guides/create-short-urls.md (1 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.18.1)
docs/040-guides/create-short-urls.md

21-21: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


32-32: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


43-43: Fenced code blocks should have a language specified

(MD040, fenced-code-language)


62-62: Fenced code blocks should have a language specified

(MD040, fenced-code-language)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: preview
🔇 Additional comments (4)
docs/040-guides/create-short-urls.md (4)

1-5: Frontmatter looks good.

Clear title, helpful description, and reasonable weight for documentation hierarchy.


7-11: Introduction is clear and well-motivated.

Good use of concrete examples and explanation of benefits. The note about the existing file is helpful context.


84-86: Closing is effective and encouraging.

Good conclusion that reinforces the value of the guide for the community.


1-86: Overall: Documentation is comprehensive and well-organized.

The guide clearly explains the purpose, mechanics, and workflow for managing short URLs. The step-by-step instructions are actionable, and the examples are practical. Once the four fenced code block language specifications are added (MD040 fixes), this guide will be ready for publication.

@asyncapi-bot
Copy link
Contributor

🚀 Docs preview deployed
https://6911c8b173c0da4675c61bc9--asyncapi-website.netlify.app

@asyncapi-bot
Copy link
Contributor

🚀 Docs preview deployed
https://6911c98edf0d462245bc24eb--asyncapi-website.netlify.app

@vishvamsinh28 vishvamsinh28 changed the title docs: add guide for managing short URLs on AsyncAPI website docs: short URLs guide for website Nov 10, 2025
Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

what about the /s/ path?

@vishvamsinh28
Copy link
Contributor Author

it would look more clean without /s/ path wdyt ?

Copy link
Member

derberg commented Nov 10, 2025

but it cannot as it will conflict with other paths that actually point to real content, like /docs and many others.

s relates to short - if you see it, you know this is short url and nothing else

@vishvamsinh28
Copy link
Contributor Author

makes sense, lets go with /s for short URLs. i’ll update the doc

@vishvamsinh28
Copy link
Contributor Author

@derberg updated the doc

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: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2e333c5 and 5382dab.

📒 Files selected for processing (1)
  • docs/040-guides/create-short-urls.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: preview
🔇 Additional comments (2)
docs/040-guides/create-short-urls.md (2)

50-83: Workflow steps are well-structured and actionable.

The step-by-step guide is clear, comprehensive, and includes good practices like using Deploy Preview for validation and documenting context in the PR. The example in Step 2 correctly follows the /s/ prefix requirement.


1-87: Overall documentation is clear, well-structured, and complete.

Once the examples inconsistency (lines 44–48) is corrected, this guide will be excellent. The document effectively covers purpose, constraints, technical details, syntax, status codes, and a practical workflow. The markdown structure follows best practices with proper language identifiers on code blocks. Well done balancing technical accuracy with accessibility for community members.

@asyncapi-bot
Copy link
Contributor

🚀 Docs preview deployed
https://69120b03be9277fe368939ab--asyncapi-website.netlify.app

@asyncapi-bot
Copy link
Contributor

🚀 Docs preview deployed
https://69120e9d214a73070c5918b8--asyncapi-website.netlify.app

@aeworxet
Copy link
Contributor

/bounty

@aeworxet aeworxet moved this to In Progress in Bounty Program Nov 11, 2025
@asyncapi-bot
Copy link
Contributor

🚀 Docs preview deployed
https://691585300e9b8f5aa1fd51f3--asyncapi-website.netlify.app

@vishvamsinh28
Copy link
Contributor Author

@sambhavgupta0705 PTAL

@asyncapi-bot
Copy link
Contributor

@asyncapi-bot
Copy link
Contributor

@asyncapi-bot
Copy link
Contributor

@asyncapi-bot
Copy link
Contributor

asyncapi-bot commented Nov 20, 2025

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: 1

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 051cec4 and f8da609.

📒 Files selected for processing (1)
  • docs/040-guides/create-short-urls.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-04-29T11:49:47.903Z
Learnt from: thulieblack
Repo: asyncapi/community PR: 1730
File: docs/onboarding-guide/contribution-flow.md:1-4
Timestamp: 2025-04-29T11:49:47.903Z
Learning: In the asyncapi/community repository, `docs/onboarding-guide/contribution-flow.md` is the correct path for contribution flow documentation, not `docs/community/onboarding-guide/contribution-flow.md`.

Applied to files:

  • docs/040-guides/create-short-urls.md
🪛 markdownlint-cli2 (0.18.1)
docs/040-guides/create-short-urls.md

36-36: Heading levels should only increment by one level at a time
Expected: h3; Actual: h4

(MD001, heading-increment)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: Test NodeJS PR - windows-latest
  • GitHub Check: preview
🔇 Additional comments (1)
docs/040-guides/create-short-urls.md (1)

1-67: Documentation is clear and well-structured.

The guide effectively communicates how to create short URLs with proper /s/ prefix requirements, clear syntax rules, and practical step-by-step instructions. Code examples now correctly demonstrate the /s/ prefix standard. All code blocks have appropriate language identifiers, and previous review feedback has been well-integrated.

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

🧹 Nitpick comments (1)
docs/040-guides/create-short-urls.md (1)

59-59: Minor punctuation clarification needed.

Line 59 needs a comma or restructuring for clarity: "Deploy Preview will be generated for the PR use it to validate your redirect." Consider: "Deploy Preview will be generated for the PR; use it to validate your redirect." or "A Deploy Preview will be generated for the PR—use it to validate your redirect."

-    4. Deploy Preview will be generated for the PR use it to validate your redirect.
+    4. A Deploy Preview will be generated for the PR—use it to validate your redirect.
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f8da609 and d793020.

📒 Files selected for processing (1)
  • docs/040-guides/create-short-urls.md (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-04-29T11:49:47.903Z
Learnt from: thulieblack
Repo: asyncapi/community PR: 1730
File: docs/onboarding-guide/contribution-flow.md:1-4
Timestamp: 2025-04-29T11:49:47.903Z
Learning: In the asyncapi/community repository, `docs/onboarding-guide/contribution-flow.md` is the correct path for contribution flow documentation, not `docs/community/onboarding-guide/contribution-flow.md`.

Applied to files:

  • docs/040-guides/create-short-urls.md
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: preview
🔇 Additional comments (1)
docs/040-guides/create-short-urls.md (1)

1-67: Documentation is well-structured and complete.

This guide effectively explains how to create short URLs for the AsyncAPI website. The file location is correct, the syntax is clearly presented with proper examples using the /s/ prefix, and the step-by-step instructions are actionable. The mention of deploy preview validation is a practical QA step. All code blocks have proper language identifiers per markdown best practices.

@vishvamsinh28
Copy link
Contributor Author

@bandantonio could you please review it once again ?

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

can you as part of your work also add the short link that will replace https://bit.ly/asyncapi that is currently used in website? and also update revelant places in website?

asyncapi.com/s/asyncapiv2

also better example here than studio really

@vishvamsinh28
Copy link
Contributor Author

vishvamsinh28 commented Nov 27, 2025

sure, will update it tomorrow 👍

@vishvamsinh28
Copy link
Contributor Author

@derberg replaced all bitly occurences

asyncapi/website#4647

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

7 participants