@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>
19 lines • 684 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.getScopedKeyword = getScopedKeyword;
const helpers_1 = require("../../../helpers");
/**
*
* @param metadata
* @param anchor
*/
function getScopedKeyword(metadata, anchor) {
const pageKeyword = (0, helpers_1.constructPageKeyword)(anchor.scope.key, anchor.scope.title, metadata.absoluteRoute(), anchor);
const anchorKeyword = {
title: pageKeyword.title,
path: pageKeyword.path,
type: anchor.type === 'heading' ? 'link' : undefined,
};
return [(0, helpers_1.formatKeywordKey)(pageKeyword.key), anchorKeyword];
}
//# sourceMappingURL=get-scoped-keyword.js.map
;