man

package
v1.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderMarkdown

func RenderMarkdown(content string, width int, style string) ([]string, error)

RenderMarkdown renders markdown content to ANSI-formatted terminal output. style should be a glamour standard style name ("dark", "light", "dracula", etc.).

Types

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the bubbletea model for the documentation browser.

func NewModel

func NewModel(pages []docs.Page, args []string, glamStyle string) Model

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

func (m Model) Init() tea.Cmd

Init implements tea.Model. Pre-renders all pages concurrently so the cache is warm by the time the user opens any page.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update implements tea.Model.

func (Model) View

func (m Model) View() tea.View

View implements tea.Model.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL