@antora/content-classifier
Advanced tools
Comparing version 3.0.0-beta.3 to 3.0.0-beta.4
@@ -271,4 +271,8 @@ 'use strict' | ||
) { | ||
if ((startPageSrc.module !== 'ROOT' || startPageSrc.relative !== 'index.adoc') && !this.getById(indexPageId)) { | ||
this.addFile({ src: Object.assign({}, indexPageId, { family: 'alias' }), rel: startPage }) | ||
if (!this.getById(indexPageId)) { | ||
const indexAliasId = Object.assign({}, ROOT_INDEX_ALIAS_ID, { component: name, version }) | ||
const indexAlias = this.getById(indexAliasId) | ||
indexAlias | ||
? indexAlias.synthetic && Object.assign(indexAlias, { rel: startPage }) | ||
: this.addFile({ src: indexAliasId, rel: startPage, synthetic: true }) | ||
} | ||
@@ -316,3 +320,5 @@ } else { | ||
if (rel) { | ||
if (!(this.getSiteStartPage() || { synthetic: true }).synthetic) return | ||
if (this.getById(ROOT_INDEX_PAGE_ID)) return | ||
const indexAlias = this.getById(ROOT_INDEX_ALIAS_ID) | ||
if (indexAlias) return indexAlias.synthetic ? Object.assign(indexAlias, { rel }) : undefined | ||
return this.addFile({ src: Object.assign({}, ROOT_INDEX_ALIAS_ID), rel, synthetic: true }) | ||
@@ -319,0 +325,0 @@ } else if (rel === false) { |
{ | ||
"name": "@antora/content-classifier", | ||
"version": "3.0.0-beta.3", | ||
"version": "3.0.0-beta.4", | ||
"description": "Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.", | ||
@@ -19,3 +19,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/logger": "3.0.0-beta.3", | ||
"@antora/logger": "3.0.0-beta.4", | ||
"mime-types": "~2.1", | ||
@@ -38,3 +38,4 @@ "vinyl": "~2.2" | ||
], | ||
"gitHead": "45da95a2e2dea538379d2d9f42013d2208fb86c3" | ||
"gitHead": "8a142499e9f1a9e0631777796e06dd6c010d3a90", | ||
"readmeFilename": "README.md" | ||
} |
57549
934
+ Added@antora/logger@3.0.0-beta.4(transitive)
- Removed@antora/logger@3.0.0-beta.3(transitive)
Updated@antora/logger@3.0.0-beta.4