An open-source, faster Devin alternative
TypeScript
banner for v1 docs
Brian Reardon7b007a28926e
diff --git a/docs/docs.json b/docs/docs.jsonindex f32a9b42..466d04e8 100644--- a/docs/docs.json+++ b/docs/docs.json@@ -362,6 +362,10 @@}]},+ "banner": {+ "content": "✨ You are viewing the **v2** SDK docs, which have not gone into effect yet. For the docs that describe the platform as it works today, go to [docs-v1.opencomputer.dev](https://docs-v1.opencomputer.dev).",+ "dismissible": false+ },"logo": {"light": "/images/logo-light.svg","dark": "/images/logo-dark.svg",diff --git a/docs/style.css b/docs/style.cssnew file mode 100644index 00000000..ea1483a8--- /dev/null+++ b/docs/style.css@@ -0,0 +1,14 @@+/* Pre-cutover notice for the v2 docs.+ *+ * The banner takes its background from `bg-primary-dark` (colors.dark, a+ * near-black), so it can only be recoloured here — changing colors.dark would+ * repaint the whole site. Text is already forced white by the banner's own+ * utilities, so only the background needs overriding.+ *+ * Violet-600 rather than a pastel: white on a genuinely light purple lands+ * around 3:1 and fails WCAG AA for 14px text. This reads purple and clears AA+ * at ~5.7:1.+ */+#banner {+ background-color: #7c3aed !important;+}