@antora/document-converter
Advanced tools
Comparing version 3.0.0-alpha.10 to 3.0.0-beta.1
'use strict' | ||
const { loadAsciiDoc, extractAsciiDocMetadata } = require('@antora/asciidoc-loader') | ||
const { | ||
loadAsciiDoc: _loadAsciiDoc, | ||
extractAsciiDocMetadata: _extractAsciiDocMetadata, | ||
} = require('@antora/asciidoc-loader') | ||
@@ -27,2 +30,5 @@ /** | ||
function convertDocument (file, contentCatalog = undefined, asciidocConfig = {}) { | ||
const { extractAsciiDocMetadata = _extractAsciiDocMetadata, loadAsciiDoc = _loadAsciiDoc } = this | ||
? this.getFunctions(false) | ||
: {} | ||
const doc = loadAsciiDoc(file, contentCatalog, asciidocConfig) | ||
@@ -29,0 +35,0 @@ if (!file.asciidoc) { |
'use strict' | ||
const convertDocument = require('./convert-document') | ||
const { loadAsciiDoc, extractAsciiDocMetadata } = require('@antora/asciidoc-loader') | ||
const _convertDocument = require('./convert-document') | ||
const { | ||
loadAsciiDoc: _loadAsciiDoc, | ||
extractAsciiDocMetadata: _extractAsciiDocMetadata, | ||
} = require('@antora/asciidoc-loader') | ||
@@ -29,2 +32,7 @@ /** | ||
function convertDocuments (contentCatalog, siteAsciiDocConfig = {}) { | ||
const { | ||
convertDocument = _convertDocument, | ||
extractAsciiDocMetadata = _extractAsciiDocMetadata, | ||
loadAsciiDoc = _loadAsciiDoc, | ||
} = this ? this.getFunctions(false) : {} | ||
const mainAsciiDocConfigs = new Map() | ||
@@ -78,2 +86,2 @@ contentCatalog.getComponents().forEach(({ name: component, versions }) => { | ||
module.exports = Object.assign(convertDocuments, { convertDocuments, convertDocument }) | ||
module.exports = Object.assign(convertDocuments, { convertDocuments, convertDocument: _convertDocument }) |
{ | ||
"name": "@antora/document-converter", | ||
"version": "3.0.0-alpha.10", | ||
"version": "3.0.0-beta.1", | ||
"description": "Converts AsciiDoc documents to embeddable HTML for use in an Antora documentation pipeline.", | ||
@@ -20,6 +20,6 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/asciidoc-loader": "3.0.0-alpha.10" | ||
"@antora/asciidoc-loader": "3.0.0-beta.1" | ||
}, | ||
"engines": { | ||
"node": ">=10.17.0" | ||
"node": ">=12.21.0" | ||
}, | ||
@@ -39,3 +39,3 @@ "files": [ | ||
], | ||
"gitHead": "a9e10aacbc6fb0c4dc3a42dd7e4a5c763d153428" | ||
"gitHead": "7c5ef1ea93dd489af533c80a936c736013c41769" | ||
} |
@@ -6,3 +6,3 @@ # Antora Document Converter | ||
[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](https://asciidoctor.org). | ||
Its site generator aggregates documents from versioned content repositories and processes them using [Asciidoctor](https://asciidoctor.org). | ||
@@ -9,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
24348
131
+ Added@antora/asciidoc-loader@3.0.0-beta.1(transitive)
+ Added@antora/logger@3.0.0-beta.1(transitive)
+ Addedsonic-boom@2.3.2(transitive)
- Removed@antora/asciidoc-loader@3.0.0-alpha.10(transitive)
- Removed@antora/logger@3.0.0-alpha.10(transitive)
- Removedsonic-boom@2.1.02.8.0(transitive)