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

@antora/document-converter

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/document-converter - npm Package Compare versions

Comparing version 3.0.0-alpha.10 to 3.0.0-beta.1

8

lib/convert-document.js
'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) {

14

lib/convert-documents.js
'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

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