@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>
28 lines • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildApiKeywords = buildApiKeywords;
const helpers_1 = require("../../../../helpers");
const get_api_anchor_keywords_1 = require("./get-api-anchor-keywords");
const get_pipe_keywords_1 = require("./get-pipe-keywords");
const get_selector_keywords_1 = require("./get-selector-keywords");
/**
*
* @param entry
*/
function buildApiKeywords(entry) {
return (anchors) => {
const key = String(entry.entry.declaration.getName());
const title = entry.keywordTitle;
const apiKeyword = {
title,
path: entry.absoluteRoute(),
};
return [
[(0, helpers_1.formatKeywordKey)(key), apiKeyword],
...(0, get_api_anchor_keywords_1.getApiAnchorKeywords)(entry, anchors),
...(0, get_selector_keywords_1.getSelectorKeywords)(entry),
...(0, get_pipe_keywords_1.getPipeKeywords)(entry),
];
};
}
//# sourceMappingURL=build-api-keywords.js.map
;