Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@antora/collector-extension
Advanced tools
An Antora extension that runs the specified commands per content root and imports the specified files into the content aggregate.
The Antora Collector extension augments the content aggregation capabilities of Antora by invoking external commands that generate and/or retrieve files that can be imported into the content aggregate.
The Antora Collector extension offers a configuration-based mechanism to contribute additional content to the content aggregate.
The extension allows you to delegate to zero or more external commands (e.g., ./gradlew generateContent
) that may generate and/or retrieve files.
The extension also provides a file scanner to find and import additional files (committed, generated, or downloaded) into the content aggregate (and, in turn, the content catalog).
These files then become referencable resources (e.g., pages, partials, attachments, etc.) in an Antora site.
You can think of Collector as adding additional content roots to your playbook that happen to be created dynamically (and which are transient). The extension is agnostic to the build tool (Gradle, Maven, npm, etc.) and--to the extent possible--the operating system.
Use the following command to install the extension into your playbook project:
$ npm i @antora/collector-extension
Open your Antora playbook file and register the extension as an entry in the antora.extensions
key.
If this key doesn’t yet exist in your playbook, first create it.
antora-playbook.yml
antora:
extensions:
- '@antora/collector-extension'
To configure the extension, you must define at least one step with a clean, run, and/or scan action under the ext.collector
key in a component descriptor.
antora.yml
name: my-project
version: '1.0'
# ...
ext:
collector:
run: generate-files.js
scan: build/generated-files
Copyright (C) 2022-present by OpenDevise Inc. and the individual contributors of this project.
Use of this software is granted under the terms of the Mozilla Public License Version 2.0 (MPL-2.0).
FAQs
An Antora extension that runs the specified commands per content root and imports the specified files into the content aggregate.
The npm package @antora/collector-extension receives a total of 2,031 weekly downloads. As such, @antora/collector-extension popularity was classified as popular.
We found that @antora/collector-extension demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.