docusaurus-theme-openapi-docs
Version:
OpenAPI theme for Docusaurus.
14 lines (12 loc) • 474 B
text/typescript
/* ============================================================================
* Copyright (c) Palo Alto Networks
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* ========================================================================== */
export function createDescription(description: string | undefined) {
if (!description) {
return "";
}
return `\n\n${description}\n\n`;
}