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>

25 lines 828 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.buildGuideKeywords = buildGuideKeywords; const helpers_1 = require("../../../../helpers"); const get_page_anchor_keywords_1 = require("./get-page-anchor-keywords"); /** * * @param entry */ function buildGuideKeywords(entry) { return (anchors) => { if (!entry.entry.keyword) { return []; } const key = `*${entry.entry.keyword}`; const title = entry.keywordTitle; const guideKeyword = { title, path: entry.absoluteRoute(), type: 'link', }; return [[(0, helpers_1.formatKeywordKey)(key), guideKeyword], ...(0, get_page_anchor_keywords_1.getPageAnchorKeywords)(entry, anchors)]; }; } //# sourceMappingURL=build-guide-keywords.js.map