nav-generator.ts
4 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
Reference
fngetDocDisplayName(filePath: string): stringGets the human-readable display name for a documentation file. Transforms file…
Gets the human-readable display name for a documentation file. Transforms file paths and names into proper title case:
- Extracts base name (e.g., 'transform.ts' → 'transform')
- Converts kebab-case to Title Case (e.g., 'nav-generator' → 'Nav Generator')
- Converts camelCase to Title Case (e.g., 'transformMarkdown' → 'Transform Markdown')
- Handles special cases (index → 'Overview')
Examples
'/path/to/transform.ts'→'Transform''nav-generator.ts'→'Nav Generator''index.ts'→'Overview''index-module.ts'→'Overview''myFunction.ts'→'My Function'(with camelCase handling)
Parameters
-
filePathstringFull or relative file path
Returns
string
Formatted display name suitable for UI labels
fngetDocFileName(filePath: string): stringGets the file name (without extension) for use in navigation paths. This handle…
Gets the file name (without extension) for use in navigation paths. This handles filename conflicts that may occur during generation:
- Preserves most names as-is
- Special handling for index files to maintain consistency
Parameters
-
filePathstringSource file path
Returns
string
File name without extension, ready for URL paths