docs: add documentation links to nodes & tools (#184)

* docs: add documentation links to nodes & tools

* fix: add type hints to constants

---------

Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
This commit is contained in:
Sabiha Khan 2026-03-09 11:39:25 +05:30 committed by GitHub
parent 5114ca5ee7
commit 5698338215
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 64 additions and 6 deletions

View file

@ -1,6 +1,6 @@
"use client";
import { ArrowLeft, Code, Loader2, Save } from "lucide-react";
import { ArrowLeft, Code, ExternalLink, Loader2, Save } from "lucide-react";
import { useParams, useRouter } from "next/navigation";
import { useCallback, useEffect, useState } from "react";
@ -20,6 +20,7 @@ import {
DialogTitle,
} from "@/components/ui/dialog";
import { Skeleton } from "@/components/ui/skeleton";
import { TOOL_DOCUMENTATION_URLS } from "@/constants/documentation";
import { useAuth } from "@/lib/auth";
import {
@ -439,6 +440,17 @@ const data = await response.json();`;
View Code
</Button>
)}
{TOOL_DOCUMENTATION_URLS[tool.category] && (
<a
href={TOOL_DOCUMENTATION_URLS[tool.category]}
target="_blank"
rel="noopener noreferrer"
className="flex items-center gap-1 text-sm text-muted-foreground hover:text-foreground transition-colors"
>
Docs
<ExternalLink className="h-3.5 w-3.5" />
</a>
)}
</div>
</div>