@@ -23,7 +28,7 @@ export const FunctionParameters: FC
 = ({
 					class="bg-gray-50 rounded-md p-4 border border-gray-100"
 				>
 					
 						{param.name}
diff --git a/website/src/components/ui/type2href.ts b/website/src/components/ui/type2href.ts
index ff68b2c782..da9a1887f4 100644
--- a/website/src/components/ui/type2href.ts
+++ b/website/src/components/ui/type2href.ts
@@ -58,3 +58,28 @@ export const type2href = (parameterType: string): string | null => {
 	}
 	return null;
 };
+
+/**
+ * Build the ID of a parameter with prefix
+ *
+ * If the parameter belongs to a top-level function on a page, leave `prefix` empty;
+ * Otherwise, set it to an appropriate prefix.
+ *
+ * ## Example values of `prefix`
+ *
+ * | Page (kind)         | Function         | Parameter  | `prefix`                |
+ * | ------------------- | ---------------- | ---------- | ----------------------- |
+ * | `figure` (function) | `figure`         | `body`     | `undefined`             |
+ * | `figure` (function) | `figure.caption` | `body`     | `"definitions-caption"` |
+ * | `calc` (group)      | `calc.abs`       | `value`    | `"functions-abs"`       |
+ * | `array` (type)      | `array.at`       | `index`    | `"definitions-at"`      |
+ * | `array` (type)      | Constructor      | `value`    | `"constructor"`      |
+ */
+export function buildParamId(
+	parameterName: string,
+	prefix: string | undefined,
+): string {
+	return prefix === undefined
+		? `parameters-${parameterName}`
+		: `${prefix}-${parameterName}`;
+}
From f212a07fe9b42bf8c7dd82a71cb61dbc3dce6154 Mon Sep 17 00:00:00 2001
From: "Y.D.X." <73375426+YDX-2147483647@users.noreply.github.com>
Date: Tue, 29 Jul 2025 18:13:25 +0800
Subject: [PATCH 4/4] docs: Fix typo
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---
 website/src/components/ui/common/TableOfContents.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/website/src/components/ui/common/TableOfContents.tsx b/website/src/components/ui/common/TableOfContents.tsx
index a6de95628a..23d44aa6ae 100644
--- a/website/src/components/ui/common/TableOfContents.tsx
+++ b/website/src/components/ui/common/TableOfContents.tsx
@@ -9,7 +9,7 @@ const PlainTableOfContents = ({
 	topLevel = false,
 }: TableOfContentsProps & { topLevel?: boolean }) => {
 	return (
-		// Indent for succedding levels
+		// Indent for succeeding levels
 		
 			{outline.map((item) => (
 				-