Skip to content

πŸš€ The fast, Pythonic way to build MCP servers and clients.

Add tag to deployment pages (#3624)

Jeremiah Lowin6c76bea3e840
diff --git a/docs/unify-intent.js b/docs/unify-intent.js
index 25eafe494..b51e57b5a 100644
--- a/docs/unify-intent.js
+++ b/docs/unify-intent.js
@@ -1,10 +1,16 @@
-// Load Unify intent tag on authentication pages only
+// Load Unify intent tag on selected pages
(function () {
if (typeof window === "undefined") return;
- function isAuthPage() {
+ function isTaggedPage() {
var path = window.location.pathname;
- return path.includes("/servers/auth/") || path.includes("/clients/auth/");
+ return (
+ path.includes("/servers/auth/") ||
+ path.includes("/clients/auth/") ||
+ path.includes("/deployment/running-server") ||
+ path.includes("/deployment/http") ||
+ path.includes("/deployment/prefect-horizon")
+ );
}
function loadUnify() {
@@ -45,9 +51,9 @@
}
function update() {
- if (isAuthPage() && !document.getElementById("unifytag")) {
+ if (isTaggedPage() && !document.getElementById("unifytag")) {
loadUnify();
- } else if (!isAuthPage() && document.getElementById("unifytag")) {
+ } else if (!isTaggedPage() && document.getElementById("unifytag")) {
document.getElementById("unifytag").remove();
}
}