@antora/content-classifier 3.0.0-beta.6 → 3.0.0-rc.1

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.
@@ -64,10 +64,10 @@ function allocateSrc (file, component, version, nav) {
64
64
  let familyFolder = pathSegments[2]
65
65
  switch (familyFolder) {
66
66
  case 'pages':
67
- // this location for partials is deprecated; warn starting in Antora 3.x
67
+ // pages/_partials location for partials is @deprecated; special designation scheduled to be removed in Antora 4
68
68
  if (pathSegments[3] === '_partials') {
69
69
  file.src.family = 'partial'
70
- // relative to modules/<module>/pages/_partials (deprecated)
70
+ // relative to modules/<module>/pages/_partials
71
71
  file.src.relative = pathSegments.slice(4).join('/')
72
72
  } else if (extname === '.adoc') {
73
73
  file.src.family = 'page'
@@ -331,7 +331,7 @@ class ContentCatalog {
331
331
 
332
332
  // QUESTION should this be addPageAlias?
333
333
  registerPageAlias (spec, target) {
334
- // .adoc file extension will be required on ID spec for page alias starting in Antora 4 (possibly in Antora 3)
334
+ // adding .adoc file extension to page alias if missing is @deprecated; scheduled to be removed in Antora 4
335
335
  const inferredSpec = spec.endsWith('.adoc') ? undefined : spec + '.adoc'
336
336
  const src = parseResourceId(inferredSpec || spec, target.src, 'page', ['page'])
337
337
  // QUESTION should we throw an error if alias is invalid?
@@ -525,9 +525,9 @@ function computePub (src, out, family, version, htmlUrlExtensionStyle) {
525
525
  }
526
526
 
527
527
  function computeVersionSegment (name, version, mode) {
528
+ // special designation for master verson is @deprecated; special designation scheduled to be removed in Antora 4
528
529
  if (mode === 'original') return !version || version === 'master' ? '' : version
529
530
  const strategy = this.latestVersionUrlSegmentStrategy
530
- // NOTE: special exception; revisit in Antora 3
531
531
  if (!version || version === 'master') {
532
532
  if (mode !== 'alias') return ''
533
533
  if (strategy === 'redirect:to') return
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/content-classifier",
3
- "version": "3.0.0-beta.6",
3
+ "version": "3.0.0-rc.1",
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)",
@@ -19,7 +19,7 @@
19
19
  "test": "_mocha"
20
20
  },
21
21
  "dependencies": {
22
- "@antora/logger": "3.0.0-beta.6",
22
+ "@antora/logger": "3.0.0-rc.1",
23
23
  "mime-types": "~2.1",
24
24
  "vinyl": "~2.2"
25
25
  },
@@ -37,5 +37,5 @@
37
37
  "static site",
38
38
  "web publishing"
39
39
  ],
40
- "gitHead": "f9f747965f599442562f59206d870b7e38864806"
40
+ "gitHead": "044371a33e2c0fed9724d30945bbb549d64845d5"
41
41
  }