@eryxdoc/siteModel Module
Summary
Functions
API Reference
Functions
siteModel.normalizeMount
siteModel.normalizeMount(mount: string?) → string
siteModel.getSectionRoutePath
siteModel.getArticleRoutePath
siteModel.getModuleRoutePath
siteModel.collect
Types
SectionLandingConfig
title: string?
description: string?
generate: boolean?
SectionConfig
type SectionConfig = {
id: string,
label: string,
mount: string?,
headerHref: string?,
articles: string?,
modules: string?,
prefix: string?,
landing: SectionLandingConfig?,
children: { SectionConfig }?
}
id: string
label: string
mount: string?
headerHref: string?
articles: string?
modules: string?
prefix: string?
SiteSection
type SiteSection = {
id: string,
label: string,
mount: string?,
headerHref: string?,
articles: string?,
modules: string?,
prefix: string?,
landing: SectionLandingConfig?,
children: { SiteSection }?,
parentId: string?,
topLevelId: string,
isLeaf: boolean
}
id: string
label: string
mount: string?
headerHref: string?
articles: string?
modules: string?
prefix: string?
parentId: string?
topLevelId: string
isLeaf: boolean
SectionFolderMeta
type SectionFolderMeta = {
sectionTitles: { [string]: string },
folderTitles: { [string]: string },
folderOrder: { [string]: number }
}
sectionTitles: { [string]: string }
folderTitles: { [string]: string }
folderOrder: { [string]: number }
ArticleEntry
type ArticleEntry = {
key: string,
localName: string,
routePath: string,
article: Article.Article,
sectionId: string
}
key: string
localName: string
routePath: string
sectionId: string
CollectedSite
type CollectedSite = {
sections: { SiteSection },
leafSections: { SiteSection },
sectionsById: { [string]: SiteSection },
articles: { ArticleEntry },
modules: { any },
moduleSectionByName: { [string]: string },
folderMetaBySectionId: { [string]: SectionFolderMeta },
explicitSections: boolean
}
modules: { any }
moduleSectionByName: { [string]: string }
explicitSections: boolean