From 2df07abdf45d949ba99e30bea3bacd8885278e46 Mon Sep 17 00:00:00 2001 From: Qiao Han Date: Thu, 19 Jan 2023 17:10:01 +0800 Subject: [PATCH] chore: prefer long descriptions when available --- apps/docs/components/reference/CLICommandSection.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/apps/docs/components/reference/CLICommandSection.tsx b/apps/docs/components/reference/CLICommandSection.tsx index 09eb13dc4b3..9217dd4980f 100644 --- a/apps/docs/components/reference/CLICommandSection.tsx +++ b/apps/docs/components/reference/CLICommandSection.tsx @@ -66,9 +66,15 @@ const CliCommandSection = (props) => { ' mb-16', ].join(' ')} > -

- {command.summary} -

+ {command.description ? ( +
+ {command.description} +
+ ) : ( +

+ {command.summary} +

+ )} {command.subcommands.length > 0 && (