ssg-output.ts#
5 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
Reference#
fnplanSsgOutputs(input: PlanSsgOutputsInput): SsgOutputPlanPlan resource, companion, feed, and sitemap outputs without rendering pages. ss…
Plan resource, companion, feed, and sitemap outputs without rendering pages.
ssg.enabled is ignored. Use ssg: { enabled: false, markdownSource, lastUpdated, siteUrl } so those fields still resolve. lastUpdated on a page wins over git.
Signature
export function planSsgOutputs(input: PlanSsgOutputsInput): SsgOutputPlanParameters
-
inputPlanSsgOutputsInput
Returns
interfacePlanSsgOutputsInputInputs for planning composable SSG outputs from host-rendered pages.
Inputs for planning composable SSG outputs from host-rendered pages.
Signature
export interface PlanSsgOutputsInputMembers
Properties
| Name | Type | Description |
|---|---|---|
collectionNamesoptional |
readonly string[] |
|
collectionsoptional |
Record<string, readonly FeedItemInput[]> |
|
itemsoptional |
readonly FeedItemInput[] |
|
optionsoptional |
PlanSsgOutputsOptions | Pick<OxContentOptions, keyof PlanSsgOutputsOptions> |
|
outDir |
string |
|
pages |
readonly SsgOutputPageInput[] |
|
rootoptional |
string |
|
siteDescriptionoptional |
string |
|
srcDiroptional |
string |
interfacePlanSsgOutputsOptionsSame option objects oxContent() / buildSsg() accept. ssg.enabled is ignored.
Same option objects oxContent() / buildSsg() accept. ssg.enabled is ignored.
Signature
export interface PlanSsgOutputsOptionsMembers
Properties
| Name | Type | Description |
|---|---|---|
baseoptional |
string |
|
feedsoptional |
boolean | FeedsOptions |
|
iconsoptional |
boolean | IconsOptions |
|
publishStateoptional |
boolean | PublishStateOptions |
|
resourcesoptional |
boolean | ResourcesOptions |
|
siteMapsoptional |
boolean | SiteMapsOptions |
|
ssgoptional |
boolean | SsgOptions |
modulessg-outputComposable SSG outputs for custom hosts that set ssg: false. Ox Content owns resource fingerprinting, Markdown companio…
Composable SSG outputs for custom hosts that set ssg: false.
Ox Content owns resource fingerprinting, Markdown companions, feeds, sitemaps, and git lastmod. The host keeps page templates and HTML.
interfaceSsgOutputPlanPlanned writer inputs. Call the matching write* function for each feature.
Planned writer inputs. Call the matching write* function for each feature.
Signature
export interface SsgOutputPlanMembers
Properties
| Name | Type | Description |
|---|---|---|
feeds |
{ outDir: string; base: string; siteUrl?: string; siteName?: string; siteDescription?: string; options: ResolvedFeedsOptions; publishState: ResolvedPublishStateOptions; collections?: Record<string, readonly FeedItemInput[]>; collectionNames?: readonly string[]; items?: readonly FeedItemInput[] } |
|
markdownCompanions |
{ outDir: string; base: string; options: ResolvedMarkdownSourceOptions; publishState: ResolvedPublishStateOptions; pages: MarkdownSourcePageInput[] } |
|
resources |
WriteResourceFilesInput |
|
selfHostedAssets |
WriteSelfHostedAssetsInput |
|
siteMaps |
{ outDir: string; base: string; siteUrl?: string; siteName?: string; siteDescription?: string; options: ResolvedSiteMapsOptions; pages: SiteMapPageInput[] } |