Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderMarkdown ¶
RenderMarkdown renders markdown content to ANSI-formatted terminal output. style should be a glamour standard style name ("dark", "light", "dracula", etc.).
func SectionLabel ¶
SectionLabel returns the display name for a section key.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the bubbletea model for the documentation browser.
func NewModel ¶
NewModel creates a new Model. If args contains a page slug, that page is opened directly. glamStyle should be determined before the TUI starts (e.g. "dark" or "light").
func (Model) Init ¶
Init implements tea.Model. Pre-renders all pages concurrently so the cache is warm by the time the user opens any page.
type Page ¶
type Page struct {
Title string
Section string
Slug string
Path string
// contains filtered or unexported fields
}
Page represents a single documentation page.
func BuildRegistry ¶
func BuildRegistry() []Page
BuildRegistry walks the embedded docs FS and returns all pages in section order.
func FilterPages ¶
FilterPages returns pages whose title or content contains the filter string (case-insensitive).