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

@antora/page-composer

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/page-composer - npm Package Compare versions

Comparing version 2.3.0-alpha.1 to 2.3.0-alpha.2

14

lib/create-page-composer.js

@@ -30,2 +30,5 @@ 'use strict'

function createPageComposer (playbook, contentCatalog, uiCatalog, env = process.env) {
handlebars.registerHelper('resolvePage', resolvePageHelper)
handlebars.registerHelper('resolvePageUrl', resolvePageUrlHelper)
uiCatalog

@@ -102,3 +105,3 @@ .findByType('helper')

function buildSiteUiModel (playbook, contentCatalog) {
const model = { title: playbook.site.title }
const model = { title: playbook.site.title, contentCatalog: contentCatalog.exportToModel() }

@@ -203,2 +206,11 @@ let siteUrl = playbook.site.url

function resolvePageHelper (spec, { hash: context }) {
return this.site.contentCatalog.resolvePage(spec, context)
}
function resolvePageUrlHelper (spec, { hash: context }) {
const page = this.site.contentCatalog.resolvePage(spec, context)
if (page) return page.pub.url
}
function getNavContext (url, title, navigation) {

@@ -205,0 +217,0 @@ const navContext = { breadcrumbs: [] }

2

package.json
{
"name": "@antora/page-composer",
"version": "2.3.0-alpha.1",
"version": "2.3.0-alpha.2",
"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.",

@@ -5,0 +5,0 @@ "license": "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