UNPKG

docusaurus-plugin-openapi-docs

Version:

OpenAPI plugin for Docusaurus.

23 lines (20 loc) 690 B
/* ============================================================================ * 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. * ========================================================================== */ import { create } from "./utils"; export function createRequestHeader(header: string) { return [ create("Heading", { id: header.replace(" ", "-").toLowerCase(), as: "h2", className: "openapi-tabs__heading", children: [ `<Translate id="theme.openapi.request.title">${header}</Translate>`, ], }), "\n\n", ]; }