@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>
24 lines • 675 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.constructPageKeyword = constructPageKeyword;
/**
*
* @param key
* @param title
* @param path
* @param anchor
*/
function constructPageKeyword(key, title, path, anchor) {
return anchor.type === 'heading'
? {
key: `${key}#${anchor.anchor}`,
title: `${title} [${anchor.title}]`,
path: `${path}#${anchor.anchorId}`,
}
: {
key: `${key}.${anchor.anchor}`,
title: `${title}.${anchor.title}`,
path: `${path}#${anchor.anchorId}`,
};
}
//# sourceMappingURL=construct-page-keyword.js.map
;