@antora/content-classifier 3.2.0-alpha.2 → 3.2.0-alpha.3
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/README.md +1 -1
- package/lib/classify-content.js +1 -1
- package/lib/content-catalog.js +1 -1
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -9,4 +9,4 @@ Its site generator aggregates documents from versioned content repositories and
|
|
|
9
9
|
|
|
10
10
|
Copyright (C) 2017-present [OpenDevise Inc.](https://opendevise.com) and the [Antora Project](https://antora.org).
|
|
11
11
|
|
|
12
|
-
Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
|
|
12
|
+
Use of this software is granted under the terms of the [Mozilla Public License Version 2.0](https://www.mozilla.org/en-US/MPL/2.0/) (MPL-2.0).
|
package/lib/classify-content.js
CHANGED
|
@@ -152,7 +152,7 @@ function resolveAsciiDocConfig (siteAsciiDocConfig, { asciidoc, origins = [] })
|
|
|
152
152
|
const initial = siteAsciiDocConfig.attributes
|
|
153
153
|
const mdc = { file: { path: 'antora.yml', origin: origins[origins.length - 1] } }
|
|
154
154
|
const attributes = collateAsciiDocAttributes(scopedAttributes, { initial, mdc, merge: true })
|
|
155
|
-
if (attributes !== initial)
|
|
155
|
+
if (attributes !== initial) return Object.assign({}, siteAsciiDocConfig, { attributes })
|
|
156
156
|
}
|
|
157
157
|
return siteAsciiDocConfig
|
|
158
158
|
}
|
package/lib/content-catalog.js
CHANGED
|
@@ -607,7 +607,7 @@ function addSymbolicVersionAlias (componentVersion) {
|
|
|
607
607
|
|
|
608
608
|
function computeVersionSegment (componentVersion, mode) {
|
|
609
609
|
const version = componentVersion.version
|
|
610
|
-
// special designation for master
|
|
610
|
+
// special designation for master version is @deprecated; special designation scheduled to be removed in Antora 4
|
|
611
611
|
const normalizedVersion = version && version !== 'master' ? version : ''
|
|
612
612
|
const { versionSegment = normalizedVersion } = componentVersion
|
|
613
613
|
if (mode === 'original') return versionSegment
|
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.3",
|
|
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)",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"#constants": "./lib/constants.js"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@antora/asciidoc-loader": "3.2.0-alpha.
|
|
31
|
-
"@antora/logger": "3.2.0-alpha.
|
|
30
|
+
"@antora/asciidoc-loader": "3.2.0-alpha.3",
|
|
31
|
+
"@antora/logger": "3.2.0-alpha.3",
|
|
32
32
|
"mime-types": "~2.1",
|
|
33
33
|
"vinyl": "~2.2"
|
|
34
34
|
},
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
],
|
|
49
49
|
"scripts": {
|
|
50
50
|
"test": "_mocha",
|
|
51
|
-
"prepublishOnly": "
|
|
52
|
-
"postpublish": "
|
|
51
|
+
"prepublishOnly": "npx -y downdoc@latest --prepublish",
|
|
52
|
+
"postpublish": "npx -y downdoc@latest --postpublish"
|
|
53
53
|
}
|
|
54
54
|
}
|