manual

package
v1.0.260758 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dir

func Dir() string

Dir returns ~/.config/ttypedesk/System (on-disk copy of Manual chapters).

func EnsureSystemFolder

func EnsureSystemFolder() error

EnsureSystemFolder writes embedded Manual markdown into Dir(). Existing files are overwritten so shipped docs stay current.

Types

type App

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

App is the in-desk Manual reader (TOC + chapter body).

func New

func New() *App

New loads embedded chapters. Call EnsureSystemFolder separately for the on-disk copy.

func (*App) Close

func (a *App) Close() error

func (*App) Draw

func (a *App) Draw(cv *uiapp.Canvas) error

func (*App) Handle

func (a *App) Handle(e uiapp.Event) error

func (*App) Init

func (a *App) Init(ctx *uiapp.Context) error

type Chapter

type Chapter struct {
	ID    string // filename stem, e.g. 01-welcome
	Title string
	Body  string
}

Chapter is one Manual section.

func LoadChapters

func LoadChapters() ([]Chapter, error)

LoadChapters returns Manual chapters sorted by filename.

Jump to

Keyboard shortcuts

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