Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolveTitle ¶
func ResolveTitle(manifestFM, docFM map[string]interface{}, nodeName string, indexFileNames []string, parentName string, isRootIndex bool) string
ResolveTitle determines the display title for a node using a three-level priority chain:
- manifest frontmatter "title" (non-empty string) — highest priority, explicit override
- document frontmatter "title" (non-empty string) — from the source .md file
- filename derivation — index/README nodes use parentName (or "Root" for root index); all others use nodeName. Applied: TrimSuffix ".md", replace "_"/"-" → " ", Title case.
Pure function: no mutations, no I/O.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.