@antora/page-composer
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -105,5 +105,14 @@ 'use strict' | ||
if (siteUrl) { | ||
if (siteUrl.charAt(siteUrl.length - 1) === '/') siteUrl = siteUrl.substr(0, siteUrl.length - 1) | ||
if ((model.path = new URL(siteUrl).pathname) === '/') model.path = '' | ||
model.url = siteUrl | ||
if (siteUrl === '/') { | ||
model.url = siteUrl | ||
model.path = '' | ||
} else { | ||
if (siteUrl.charAt(siteUrl.length - 1) === '/') siteUrl = siteUrl.substr(0, siteUrl.length - 1) | ||
if (siteUrl.charAt() === '/') { | ||
model.path = siteUrl | ||
} else if ((model.path = new URL(siteUrl).pathname) === '/') { | ||
model.path = '' | ||
} | ||
model.url = siteUrl | ||
} | ||
} | ||
@@ -180,3 +189,4 @@ | ||
if (site.url) { | ||
// NOTE the site URL has already been normalized at this point | ||
if (site.url && site.url.charAt() !== '/') { | ||
// NOTE not always the same as the latest component version (since the page might cease to exist) | ||
@@ -183,0 +193,0 @@ const latestPageVersion = versions |
{ | ||
"name": "@antora/page-composer", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Wraps the embeddable HTML contents of each page file from the content catalog in a page layout to yield standalone pages in an Antora documentation pipeline.", | ||
@@ -18,3 +18,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"handlebars": "~4.1", | ||
"handlebars": "~4.2", | ||
"require-from-string": "~2.0" | ||
@@ -21,0 +21,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12871
271
+ Addedhandlebars@4.2.2(transitive)
- Removedhandlebars@4.1.2(transitive)
Updatedhandlebars@~4.2