Skip to content

Open external links in a new tab#331

Merged
DTTerastar merged 1 commit into
mainfrom
docs/external-links-new-tab
May 23, 2026
Merged

Open external links in a new tab#331
DTTerastar merged 1 commit into
mainfrom
docs/external-links-new-tab

Conversation

@DTTerastar
Copy link
Copy Markdown
Contributor

@DTTerastar DTTerastar commented May 23, 2026

Summary

  • Adds rehype-external-links to the markdown pipeline
  • All external URLs across the docs now render with target="_blank" + rel="noopener noreferrer"
  • Internal links (relative paths like /firmware, /quick-start) are unaffected

Why

Store/affiliate links on /nodes and tutorial cross-references to GitHub discussions kept yanking readers off the docs without warning. Opening external links in a new tab is the convention most docs sites follow.

Test plan

  • npx astro build clean — 36 pages
  • Local dev server: external links (Amazon, AliExpress, m5stack, github.com, home-assistant.io) get target="_blank"; internal links (/firmware, /credits) do not
  • Reviewer spot-check on Cloudflare preview

Made with Orca 🐋

Adds rehype-external-links to the markdown pipeline so all external
URLs across the docs site render with target="_blank" + rel="noopener
noreferrer". Internal links (relative paths) are unaffected.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

Co-authored-by: Orca <help@stably.ai>
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 23, 2026

Warning

Review limit reached

@DTTerastar, we couldn't start this review because you've used your available PR reviews for now.

Your plan currently allows 1 review/hour. Refill in 59 minutes and 32 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 05ffb732-46a1-4ff0-8799-1a7cb035b86c

📥 Commits

Reviewing files that changed from the base of the PR and between 400f66c and fc628e1.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (2)
  • astro.config.mjs
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/external-links-new-tab

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.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying espresense with  Cloudflare Pages  Cloudflare Pages

Latest commit: fc628e1
Status: ✅  Deploy successful!
Preview URL: https://d341952d.espresense.pages.dev
Branch Preview URL: https://docs-external-links-new-tab.espresense.pages.dev

View logs

@DTTerastar DTTerastar merged commit 3c97b08 into main May 23, 2026
2 checks passed
@DTTerastar DTTerastar deleted the docs/external-links-new-tab branch May 23, 2026 00:24
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.

1 participant