UNPKG

@antora/pdf-extension

Version:

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

16 lines (12 loc) 526 B
'use strict' const converter = require('./converter') const runCommand = require('@antora/run-command-helper') module.exports.register = function ({ config }, providers) { requireAssembler(this).configure(this, converter.bind(this, runCommand), 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 }