diff --git a/app/page.tsx b/app/page.tsx index 6843867..40be920 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -87,9 +87,9 @@ const navigationSections = [ export default function JSDocCheatsheet() { // TOC items for the homepage const tocItems = [ + { id: "quick-reference", title: "Quick Reference", level: 1 }, { id: "kitchen-sink", title: "Kitchen Sink Example", level: 1 }, { id: "navigation-grid", title: "Explore JSDoc Sections", level: 1 }, - { id: "quick-reference", title: "Quick Reference", level: 1 }, ] return ( @@ -98,8 +98,193 @@ export default function JSDocCheatsheet() { -
+
+ {/* Quick Reference */} + + + + + Quick Reference + + + Essential JSDoc tags you'll use most frequently + + + +
+
+

Basic Tags

+
+ + @description + + + @author + + + @version + + + @since + + + @deprecated + +
+
+
+

Parameters & Returns

+
+ + @param + + + @returns + + + @throws + + + @yields + +
+
+
+

Types & Properties

+
+ + @typedef + + + @property + + + @type + + + @enum + +
+
+
+

Functions & Classes

+
+ + @function + + + @class + + + @constructor + + + @method + + + @static + + + @override + +
+
+
+

Modules & Namespaces

+
+ + @module + + + @namespace + + + @memberof + + + @exports + + + @requires + +
+
+
+

Objects & Interfaces

+
+ + @interface + + + @implements + + + @extends + + + @mixin + +
+
+
+

Events & Callbacks

+
+ + @callback + + + @event + + + @fires + + + @listens + + + @mixes + +
+
+
+

Documentation & Links

+
+ + @example + + + @see + + + @link + + + @tutorial + + + @todo + +
+
+
+

Advanced Features

+
+ + @abstract + + + @async + + + @generator + +
+
+
+
+
+ {/* Kitchen Sink Example */} @@ -153,59 +338,6 @@ export default function JSDocCheatsheet() { ) })}
- - {/* Quick Reference */} - - - - - Quick Reference - - - Essential JSDoc tags you'll use most frequently - - - -
-
-

Basic Tags

-
- @description - @author - @version - @since -
-
-
-

Parameters

-
- @param - @returns - @throws - @example -
-
-
-

Types & Classes

-
- @typedef - @class - @method - @static -
-
-
-

Advanced

-
- @module - @callback - @interface - @link -
-
-
-
-
diff --git a/components/Sidebar.tsx b/components/Sidebar.tsx index afd8305..cf25b76 100644 --- a/components/Sidebar.tsx +++ b/components/Sidebar.tsx @@ -8,7 +8,7 @@ import Link from "next/link" import { usePathname } from "next/navigation" const navigationItems = [ - { name: "Kitchen Sink", href: "/", icon: Home }, + { name: "Home", href: "/", icon: Home }, { name: "Basic Tags", href: "/basic-tags", icon: Tag }, { name: "Parameters", href: "/parameters", icon: Code }, { name: "Types", href: "/type-definitions", icon: Hash }, @@ -25,9 +25,9 @@ export default function Sidebar() { const pathname = usePathname() return ( -