UNPKG

@antora/atlas-extension

Version:

An Antora extension that manages references across discrete runs of Antora through the use of a site manifest.

13 lines (10 loc) 316 B
'use strict' function proxyMapSite ({ mapSite }, playbook, contentCatalog) { return new Proxy(mapSite, { apply: (target, self) => { const publishablePages = contentCatalog.getPages(({ pub }) => pub) return target.call(self, playbook, publishablePages) }, }) } module.exports = proxyMapSite