UNPKG

@antora/pdf-extension

Version:

An Antora extension that uses Assembler to merge pages into assembly files, export them to the PDF format, and publish them with the site.

15 lines (11 loc) 446 B
'use strict' const converter = require('./converter') module.exports.register = function ({ config }, providers) { requireAssembler(this).configure(this, converter, config, providers) } function requireAssembler (context, packageName = '@antora/assembler') { try { return context.require(packageName) // when installed with Antora } catch {} return require(packageName) // when installed separate from Antora, perhaps in project }