Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@antora/navigation-builder

Package Overview
Dependencies
Maintainers
2
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/navigation-builder - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0-rc.1

15

lib/build-navigation.js

@@ -82,7 +82,3 @@ 'use strict'

const entry = formattedContent ? partitionContent(formattedContent) : {}
if (items.length) {
entry.items = items.map((item) => buildNavigationTree(item.getText(), getChildListItems(item)))
}
if (items.length) entry.items = items.map((item) => buildNavigationTree(item.getText(), getChildListItems(item)))
return entry

@@ -97,6 +93,11 @@ }

const [, url, role, content] = match
if (role === 'page') {
let roles
if (role && (roles = role.includes(' ') ? role.split(' ') : [role]).includes('page')) {
const hashIdx = url.indexOf('#')
if (~hashIdx) {
return { content, url, urlType: 'internal', hash: url.substr(hashIdx) }
if (roles.includes('unresolved')) {
return { content, url, urlType: 'internal', unresolved: true }
} else {
return { content, url, urlType: 'internal', hash: url.substr(hashIdx) }
}
} else {

@@ -103,0 +104,0 @@ return { content, url, urlType: 'internal' }

{
"name": "@antora/navigation-builder",
"version": "2.0.1",
"version": "2.1.0-rc.1",
"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": "2.0.1"
"@antora/asciidoc-loader": "2.1.0-rc.1"
},

@@ -21,0 +21,0 @@ "engines": {

@@ -11,4 +11,4 @@ # Antora Navigation Builder

Copyright (C) 2017-2018 [OpenDevise Inc.](https://opendevise.com) and the [Antora Project](https://antora.org).
Copyright (C) 2017-2019 [OpenDevise Inc.](https://opendevise.com) and the [Antora Project](https://antora.org).
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).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc