@antora/asciidoc-loader
Advanced tools
Comparing version 3.2.0-alpha.1 to 3.2.0-alpha.2
@@ -21,9 +21,5 @@ 'use strict' | ||
function computeRelativeUrlPath (from, to, hash = '') { | ||
if (to.charAt() === '/') { | ||
return to === from | ||
? hash || (isDir(to) ? './' : path.basename(to)) | ||
: (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash) | ||
} else { | ||
return to + hash | ||
} | ||
if (to.charAt() !== '/') return to + hash | ||
if (to === from) return hash || (isDir(to) ? './' : path.basename(to)) | ||
return (path.relative(path.dirname(from + '.'), to) || '.') + (isDir(to) ? '/' + hash : hash) | ||
} | ||
@@ -30,0 +26,0 @@ |
{ | ||
"name": "@antora/asciidoc-loader", | ||
"version": "3.2.0-alpha.1", | ||
"version": "3.2.0-alpha.2", | ||
"description": "Loads AsciiDoc content into an Asciidoctor Document object (AST) for use in an Antora documentation pipeline.", | ||
@@ -27,3 +27,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/logger": "3.2.0-alpha.1", | ||
"@antora/logger": "3.2.0-alpha.2", | ||
"@antora/user-require-helper": "~2.0", | ||
@@ -30,0 +30,0 @@ "@asciidoctor/core": "~2.2" |
@@ -21,2 +21,2 @@ # Antora AsciiDoc Loader | ||
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). | ||
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). |
41516
934
21
+ Added@antora/logger@3.2.0-alpha.2(transitive)
- Removed@antora/logger@3.2.0-alpha.1(transitive)
Updated@antora/logger@3.2.0-alpha.2