UNPKG

@ng-doc/builder

Version:

<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>

27 lines 959 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.apiDetailsAction = apiDetailsAction; const core_1 = require("@ng-doc/core"); const helpers_1 = require("../../../helpers"); const index_1 = require("../../../index"); /** * * @param declarationPath */ function apiDetailsAction(declarationPath) { return (entry) => { const project = entry.sourceFile.getProject(); const declaration = (0, helpers_1.getDeclarationByPath)(project, declarationPath); const kindName = (0, core_1.kebabCase)(declaration.getKindName()); const output = (0, index_1.renderTemplate)(`./api/details/${kindName}.html.nunj`, { context: { declaration, }, }); return { output: (0, helpers_1.minifyHtml)(output), dependencies: [declaration.getSourceFile().getFilePath()], }; }; } //# sourceMappingURL=api-details.action.js.map