Documentation
¶
Index ¶
- type Manager
- func (m *Manager) AllPages() []*PageNode
- func (m *Manager) Discover() error
- func (m *Manager) GenerateSearchIndex() []SearchEntry
- func (m *Manager) GetBreadcrumbs(urlPath string) []*PageNode
- func (m *Manager) GetHome() *PageNode
- func (m *Manager) GetNavigation() []*PageNode
- func (m *Manager) GetPage(urlPath string) (*PageNode, bool)
- func (m *Manager) GetPrevNext(currentPath string) (prev, next *PageNode)
- func (m *Manager) Reload(filePath string) error
- type PageNode
- type SearchEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles multi-page site discovery and navigation
func (*Manager) GenerateSearchIndex ¶
func (m *Manager) GenerateSearchIndex() []SearchEntry
GenerateSearchIndex creates a search index from all pages
func (*Manager) GetBreadcrumbs ¶
GetBreadcrumbs returns the breadcrumb trail for a given path
func (*Manager) GetNavigation ¶
GetNavigation returns the navigation tree
func (*Manager) GetPrevNext ¶
GetPrevNext returns the previous and next pages for navigation
type PageNode ¶
type PageNode struct {
Title string // Page title from frontmatter or config
Path string // URL path (e.g., "/getting-started/installation")
FilePath string // Relative file path (e.g., "getting-started/installation.md")
Page *tinkerdown.Page // Parsed page content
IsHome bool // Whether this is the home page
Children []*PageNode // Child pages (for sections)
}
PageNode represents a page in the site structure
Click to show internal directories.
Click to hide internal directories.