@antora/site-mapper
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -38,6 +38,6 @@ 'use strict' | ||
function mapSite (playbook, pages) { | ||
if (!pages.length) return [] | ||
let siteUrl = playbook.site.url | ||
if (!siteUrl) return [] | ||
if (!siteUrl || siteUrl.charAt() === '/') return [] | ||
if (siteUrl.charAt(siteUrl.length - 1) === '/') siteUrl = siteUrl.substr(0, siteUrl.length - 1) | ||
if (!pages.length) return [] | ||
const lastmodISO = new Date().toISOString() | ||
@@ -44,0 +44,0 @@ let sitemaps = pages.reduce((accum, file) => { |
{ | ||
"name": "@antora/site-mapper", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Generates sitemap files that list all publishable pages in an Antora documentation pipeline.", | ||
@@ -18,3 +18,3 @@ "license": "MPL-2.0", | ||
"dependencies": { | ||
"@antora/content-classifier": "2.1.0", | ||
"@antora/content-classifier": "2.1.1", | ||
"vinyl": "~2.2" | ||
@@ -21,0 +21,0 @@ }, |
6641
+ Added@antora/content-classifier@2.1.1(transitive)
- Removed@antora/content-classifier@2.1.0(transitive)