Socket
Socket
Sign inDemoInstall

@antora/collector-extension

Package Overview
Dependencies
61
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @antora/collector-extension

An Antora extension that runs a configurable command per content root and collects the content files that it generates.


Version published
Weekly downloads
1.2K
decreased by-3.7%
Maintainers
3
Install size
5.29 MB
Created
Weekly downloads
 

Readme

Source

Antora Collector Extension

The Antora Collector extension augments the content aggregation capabilities of Antora by allowing you to delegate to external commands that generate content and to import additional files into the content aggregate.

Overview

The Antora Collector extension allows you to designate zero or more external commands (e.g., gradlew generateContent) per content root that generate transient metadata or content within the context of the worktree for a git reference. The extension then scans for and imports files from specified directories into the content aggregate (and, in turn, the content catalog).

Install

Use the following command to install the extension into your playbook project:

$ npm i @antora/collector-extension

Register

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'

Configure

To configure the extension, you must define at least one run/scan operation under the ext.collector key in a component descriptor.

antora.yml

name: my-project
version: true
# ...
ext:
  collector:
    run:
      command: node generate-files.js
    scan:
      dir: 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).

Keywords

FAQs

Last updated on 12 Nov 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc