Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antora/site-publisher

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/site-publisher - npm Package Compare versions

Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6

2

lib/providers/archive.js

@@ -11,3 +11,3 @@ 'use strict'

async function publishToArchive (config, files, playbook) {
const destFile = ospath.resolve(playbook.dir || process.cwd(), config.path || DEFAULT_DEST_ARCHIVE)
const destFile = ospath.resolve(playbook.dir || '.', config.path || DEFAULT_DEST_ARCHIVE)
return publishStream(vzipDest(destFile), files)

@@ -14,0 +14,0 @@ }

@@ -11,3 +11,3 @@ 'use strict'

async function publishToFs (config, files, playbook) {
const destDir = ospath.resolve(playbook.dir || process.cwd(), config.path || DEFAULT_DEST_FS)
const destDir = ospath.resolve(playbook.dir || '.', config.path || DEFAULT_DEST_FS)
return config.clean

@@ -14,0 +14,0 @@ ? fs.remove(destDir).then(() => publishStream(vfsDest(destDir), files))

@@ -54,3 +54,3 @@ 'use strict'

try {
return requireProvider(provider, playbook.dir || process.cwd()).bind(null, options)
return requireProvider(provider, playbook.dir || '.').bind(null, options)
} catch (e) {

@@ -57,0 +57,0 @@ throw new Error('Unsupported destination provider: ' + provider)

@@ -36,6 +36,6 @@ 'use strict'

} else if (request.charAt() === '.') {
resolved = ospath.join(requireBase, request)
resolved = ospath.resolve(requireBase, request)
} else {
resolved = require.resolve(request, {
paths: [ospath.join(requireBase, 'node_modules')].concat(require.resolve.paths('')),
paths: [ospath.resolve(requireBase, 'node_modules')].concat(require.resolve.paths('')),
})

@@ -42,0 +42,0 @@ }

{
"name": "@antora/site-publisher",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"description": "Publishes the files generated in an Antora documentation pipeline to the destination(s) specified in the playbook.",

@@ -5,0 +5,0 @@ "license": "MPL-2.0",

# Antora Site Publisher
The site publisher is the component in Antora responsible for publishing (i.e., writing) the generated files to the destination(s) specified in the playbook.
The site publisher is a component in Antora responsible for publishing (i.e., writing) the generated files to the destination(s) specified in the playbook.
More than one destination may be specified, and this component supports different destination types (via providers) such as a filesystem directory, an archive file, and so forth.
[Antora](https://antora.org) is a modular static site generator designed for making documentation sites from AsciiDoc aggregated from versioned content repositories and processed with Asciidoctor.
[Antora](https://antora.org) is a modular static site generator designed for creating documentation sites from AsciiDoc documents.
Its site generator pipeline aggregates documents from versioned content repositories and processes them using [Asciidoctor](http://asciidoctor.org).

@@ -8,0 +9,0 @@ ## Copyright and License

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc