@antora/site-publisher
Advanced tools
Comparing version 1.0.0-alpha.5 to 1.0.0-alpha.6
@@ -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 |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10571
14