Skip to content

docs(website): add status link to navbar and footer#4158

Open
ShreyasGS wants to merge 2 commits into
develfrom
docs/status-link-nav
Open

docs(website): add status link to navbar and footer#4158
ShreyasGS wants to merge 2 commits into
develfrom
docs/status-link-nav

Conversation

@ShreyasGS

Copy link
Copy Markdown
Contributor

Description

Adds a Status link to the docs top nav (right after "What's new?") and to the footer's "More" column, both linking to https://status.dlthub.com. The top-nav entry includes a small colored dot that reflects real-time platform status:

  • none → green (all systems operational)
  • minor → yellow
  • major → orange
  • critical → red
  • fetch fails → gray fallback

The dot is driven by status.dlthub.com/api/v2/status.json (incident.io endpoint, Statuspage-compatible schema). The component polls the endpoint every 60 seconds so the dot reflects live status while the tab is open.

Implementation

  • src/components/StatusNavbarItem.jsx — React component with the fetch + 60s interval
  • src/theme/NavbarItem/ComponentTypes.js — Docusaurus swizzle that registers a custom-statusItem navbar-item type alongside the stock types
  • docusaurus.config.js — one navbar item, one footer link

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
docs 3537f4e Commit Preview URL

Branch Preview URL
Jul 02 2026, 01:14 PM

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