@antora/content-classifier
Advanced tools
Comparing version 2.3.1 to 2.3.2
@@ -30,4 +30,3 @@ 'use strict' | ||
if (startPageSpec) { | ||
const formalStartPageSpec = startPageSpec.endsWith('.adoc') ? startPageSpec : startPageSpec + '.adoc' | ||
const { src: startPageSrc } = (startPage = this.resolvePage(formalStartPageSpec, indexPageId)) || {} | ||
const { src: startPageSrc } = (startPage = this.resolvePage(startPageSpec, indexPageId)) || {} | ||
if (startPageSrc && startPageSrc.component === name && startPageSrc.version === version) { | ||
@@ -39,3 +38,3 @@ if (!(startPageSrc.module === 'ROOT' && startPageSrc.relative === 'index.adoc')) { | ||
startPage = this.getById(indexPageId) | ||
console.warn(`Start page specified for ${version}@${name} not found: ${formalStartPageSpec}`) | ||
console.warn(`Start page specified for ${version}@${name} not found: ${startPageSpec}`) | ||
} | ||
@@ -227,8 +226,7 @@ } else { | ||
if (!startPageSpec) return | ||
const formalStartPageSpec = startPageSpec.endsWith('.adoc') ? startPageSpec : startPageSpec + '.adoc' | ||
const rel = this.resolvePage(formalStartPageSpec) | ||
const rel = this.resolvePage(startPageSpec) | ||
if (rel) { | ||
return this.addFile({ mediaType: 'text/html', src: inflateSrc(Object.assign({}, START_ALIAS_ID), 'alias'), rel }) | ||
} else { | ||
console.warn(`Start page specified for site not found: ${formalStartPageSpec}`) | ||
console.warn(`Start page specified for site not found: ${startPageSpec}`) | ||
} | ||
@@ -235,0 +233,0 @@ } |
@@ -56,2 +56,4 @@ 'use strict' | ||
if (family === 'page' && relative.indexOf('.') < 0) relative += '.adoc' | ||
if (~relative.indexOf('/')) { | ||
@@ -58,0 +60,0 @@ relative = relative |
{ | ||
"name": "@antora/content-classifier", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"description": "Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.", | ||
@@ -19,7 +19,7 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/asciidoc-loader": "2.3.1", | ||
"@antora/asciidoc-loader": "2.3.2", | ||
"vinyl": "~2.2" | ||
}, | ||
"devDependencies": { | ||
"@antora/content-aggregator": "2.3.1" | ||
"@antora/content-aggregator": "2.3.2" | ||
}, | ||
@@ -40,3 +40,3 @@ "engines": { | ||
], | ||
"gitHead": "b5c90bd55ba16fc6b293ea76d40452212c6e2a37" | ||
"gitHead": "859ba61d87c93743e302b0e2113252cb95739ac0" | ||
} |
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
46660
708
+ Added@antora/asciidoc-loader@2.3.2(transitive)
- Removed@antora/asciidoc-loader@2.3.1(transitive)