@antora/content-classifier 3.2.0-alpha.10 → 3.2.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/classify-content.js
CHANGED
|
@@ -169,7 +169,7 @@ function allocateSrc (file, component, version, nav, implicitRoot) {
|
|
|
169
169
|
* index, if this file is a navigation file, or undefined if it's not.
|
|
170
170
|
*/
|
|
171
171
|
function getNavInfo (filepath, nav) {
|
|
172
|
-
const index = nav.
|
|
172
|
+
const index = nav.indexOf(filepath)
|
|
173
173
|
if (~index) return nav.resolved.add(filepath) && { index }
|
|
174
174
|
}
|
|
175
175
|
|
package/lib/content-catalog.js
CHANGED
|
@@ -351,8 +351,8 @@ class ContentCatalog {
|
|
|
351
351
|
Object.defineProperties(componentVersion, {
|
|
352
352
|
activeVersionSegment:
|
|
353
353
|
activeVersionSegment === version
|
|
354
|
-
? { configurable: true,
|
|
355
|
-
: { configurable: true,
|
|
354
|
+
? { configurable: true, get: getVersion }
|
|
355
|
+
: { configurable: true, value: activeVersionSegment },
|
|
356
356
|
files: {
|
|
357
357
|
configurable: true,
|
|
358
358
|
enumerable: false,
|
|
@@ -26,7 +26,7 @@ const parseResourceId = require('./parse-resource-id')
|
|
|
26
26
|
*/
|
|
27
27
|
function resolveResource (spec, catalog, ctx = {}, defaultFamily = undefined, permittedFamilies = undefined) {
|
|
28
28
|
const id = parseResourceId(spec, ctx, defaultFamily, permittedFamilies)
|
|
29
|
-
if (!id
|
|
29
|
+
if (!id?.family) return false
|
|
30
30
|
if (id.version == null) {
|
|
31
31
|
const component = catalog.getComponent(id.component)
|
|
32
32
|
if (!component) return
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antora/content-classifier",
|
|
3
|
-
"version": "3.2.0-alpha.
|
|
3
|
+
"version": "3.2.0-alpha.12",
|
|
4
4
|
"description": "Organizes aggregated content into a virtual file catalog for use in an Antora documentation pipeline.",
|
|
5
5
|
"license": "MPL-2.0",
|
|
6
6
|
"author": "OpenDevise Inc. (https://opendevise.com)",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"#constants": "./lib/constants.js"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@antora/asciidoc-loader": "3.2.0-alpha.
|
|
35
|
-
"@antora/logger": "3.2.0-alpha.
|
|
36
|
-
"mime-types": "~
|
|
34
|
+
"@antora/asciidoc-loader": "3.2.0-alpha.12",
|
|
35
|
+
"@antora/logger": "3.2.0-alpha.12",
|
|
36
|
+
"mime-types": "~3.0",
|
|
37
37
|
"vinyl": "~3.0"
|
|
38
38
|
},
|
|
39
39
|
"engines": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"web publishing"
|
|
52
52
|
],
|
|
53
53
|
"scripts": {
|
|
54
|
-
"test": "
|
|
54
|
+
"test": "node --test",
|
|
55
55
|
"prepublishOnly": "npx -y downdoc@latest --prepublish",
|
|
56
56
|
"postpublish": "npx -y downdoc@latest --postpublish"
|
|
57
57
|
}
|