@svengroup/openapi-to-pdf
Version:
Create PDF API reference documentation from OpenAPI 3.0.x specification files.
23 lines (22 loc) • 812 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.generatePreEndpointsMarkdown = generatePreEndpointsMarkdown;
exports.generatePostEndpointsMarkdown = generatePostEndpointsMarkdown;
function generatePreEndpointsMarkdown(config) {
let custom_str = "";
if (config?.texts?.pre_endpoints_section) {
custom_str += config.texts.pre_endpoints_section;
custom_str += `<div class="page-break"></div>`;
custom_str += "\n\n";
}
return custom_str;
}
function generatePostEndpointsMarkdown(config) {
let custom_str = "";
if (config?.texts?.post_endpoints_section) {
custom_str += `<div class="page-break"></div>`;
custom_str += "\n\n";
custom_str += config.texts.post_endpoints_section;
}
return custom_str;
}