chore: prefer long descriptions when available

This commit is contained in:
Qiao Han authored and Han Qiao committed 2023-01-20 10:09:44 +08:00
1 parent 28f517e897
commit 2df07abdf4
1 file changed
+9 -3
@@ -66,9 +66,15 @@ const CliCommandSection = (props) => {
' mb-16',
].join(' ')}
>
<p className="capitalize mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
{command.summary}
</p>
{command.description ? (
<div className="prose">
<ReactMarkdown>{command.description}</ReactMarkdown>
</div>
) : (
<p className="capitalize mb-4 scroll-mt-16 mt-0 text-scale-1100 text-base">
{command.summary}
</p>
)}
</header>
{command.subcommands.length > 0 && (