@antora/page-composer
Advanced tools
Comparing version 1.0.0-alpha.9 to 1.0.0-beta.1
@@ -53,3 +53,3 @@ 'use strict' | ||
* | ||
* @param {File} file - The virtual file the contains embeddeable HTML | ||
* @param {File} file - The virtual file the contains embeddable HTML | ||
* contents to wrap in a layout. | ||
@@ -60,3 +60,3 @@ * @param {ContentCatalog} contentCatalog - The content catalog | ||
* that provides access to the navigation menu for each component version. | ||
* @returns {File} The file whose contents was wrapped in the specified page layout. | ||
* @returns {File} The file whose contents were wrapped in the specified page layout. | ||
*/ | ||
@@ -92,5 +92,2 @@ return function composePage (file, contentCatalog, navigationCatalog) { | ||
uiRootPath: path.join(file.pub.rootPath, site.ui.url), | ||
// TODO siteRootUrl should only be set if there's a start/home page for the site | ||
// FIXME this really belongs on site, perhaps as site.startUrl (and needs to be relativized) | ||
//siteRootUrl | ||
} | ||
@@ -108,2 +105,5 @@ } | ||
const startPage = contentCatalog.getSiteStartPage() | ||
if (startPage) model.homeUrl = startPage.pub.url | ||
// QUESTION should components be pre-sorted? | ||
@@ -161,5 +161,3 @@ model.components = contentCatalog.getComponents().sort((a, b) => a.title.localeCompare(b.title)) | ||
editUrl: file.src.editUrl, | ||
// NOTE we won't have a home until we have a root (and/or start) component | ||
// FIXME should be precomputed as file.pub.home; not necessarily root index page | ||
home: false, | ||
home: url === site.homeUrl, | ||
} | ||
@@ -166,0 +164,0 @@ |
{ | ||
"name": "@antora/page-composer", | ||
"version": "1.0.0-alpha.9", | ||
"version": "1.0.0-beta.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": { | ||
"@antora/content-classifier": "1.0.0-alpha.9", | ||
"@antora/content-classifier": "1.0.0-beta.1", | ||
"handlebars": "^4.0.11", | ||
@@ -21,0 +21,0 @@ "require-from-string": "^2.0.1" |
10546
213
+ Added@antora/content-classifier@1.0.0-beta.1(transitive)
- Removed@antora/content-classifier@1.0.0-alpha.9(transitive)