docs: update v1 references to link to hosted V1 API docs (#1584)

This commit is contained in:
Den Delimarsky 2026-02-25 14:26:16 -08:00 • committed by GitHub
commit ff06828def
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

9
docs/v2-banner.js Normal file
View file

@ -0,0 +1,9 @@
document.addEventListener("DOMContentLoaded", function () {
var banner = document.createElement("div");
banner.innerHTML =
"This documents a <strong>pre-release</strong> version of the SDK. Expect breaking changes. For the stable SDK, see the <a href='/'>V1 docs</a>.";
banner.style.cssText =
"background:#fff3cd;color:#856404;border-bottom:1px solid #ffc107;padding:8px 16px;text-align:center;font-size:14px;";
banner.querySelector("a").style.cssText = "color:#856404;text-decoration:underline;";
document.body.insertBefore(banner, document.body.firstChild);
});