@antora/navigation-builder
Advanced tools
Comparing version 3.0.0-alpha.9 to 3.0.0-alpha.10
@@ -24,3 +24,3 @@ 'use strict' | ||
* @param {Object} [asciidocConfig={}] - AsciiDoc processor configuration options. Extensions are not propagated. | ||
* Sets the relativizePageRefs option to false before passing to the loadAsciiDoc function. | ||
* Sets the relativizeResourceRefs option to false before passing to the loadAsciiDoc function. | ||
* @param {Object} [asciidocConfig.attributes={}] - Shared AsciiDoc attributes to assign to the document. | ||
@@ -32,3 +32,3 @@ * | ||
const navCatalog = new NavigationCatalog() | ||
const navAsciiDocConfig = { doctype: 'article', extensions: [], relativizePageRefs: false } | ||
const navAsciiDocConfig = { doctype: 'article', extensions: [], relativizeResourceRefs: false } | ||
contentCatalog | ||
@@ -103,3 +103,3 @@ .findBy({ family: 'nav' }) | ||
let roles | ||
if (role && (roles = role.includes(' ') ? role.split(' ') : [role]).includes('page')) { | ||
if (role && role.includes(' ') && (roles = role.split(' ')).includes('xref')) { | ||
const hashIdx = url.indexOf('#') | ||
@@ -106,0 +106,0 @@ if (~hashIdx) { |
{ | ||
"name": "@antora/navigation-builder", | ||
"version": "3.0.0-alpha.9", | ||
"version": "3.0.0-alpha.10", | ||
"description": "Builds a navigation catalog from navigation files for adding site navigation to pages in an Antora documentation pipeline.", | ||
@@ -18,3 +18,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/asciidoc-loader": "3.0.0-alpha.9" | ||
"@antora/asciidoc-loader": "3.0.0-alpha.10" | ||
}, | ||
@@ -36,3 +36,3 @@ "engines": { | ||
], | ||
"gitHead": "a504d6889819b548e8a5416a7194cbb6f9a93e93" | ||
"gitHead": "a9e10aacbc6fb0c4dc3a42dd7e4a5c763d153428" | ||
} |
24414
+ Added@antora/asciidoc-loader@3.0.0-alpha.10(transitive)
+ Added@antora/logger@3.0.0-alpha.10(transitive)
+ Addedcolorette@2.0.20(transitive)
+ Addedduplexify@4.1.3(transitive)
+ Addedpino-abstract-transport@0.4.0(transitive)
+ Addedpino-pretty@7.1.0(transitive)
+ Addedsecure-json-parse@2.7.0(transitive)
+ Addedsonic-boom@2.8.0(transitive)
+ Addedstream-shift@1.0.3(transitive)
- Removed@antora/asciidoc-loader@3.0.0-alpha.9(transitive)
- Removed@antora/logger@3.0.0-alpha.9(transitive)
- Removed@hapi/bourne@2.1.0(transitive)
- Removedcolorette@1.4.0(transitive)
- Removedjmespath@0.15.0(transitive)
- Removedpino-pretty@6.0.0(transitive)