helpdoc

package
v1.17.2 Latest Latest
Warning

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

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

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package helpdoc provides the embedded documentation shown by the TUI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocRef

type DocRef struct {
	Page    string
	Heading string
}

DocRef points to a docs page. Page is a path under docs/ without .md. Released binaries keep these links, so renamed pages need a redirect.

func Manual

func Manual() DocRef

func (DocRef) URL

func (d DocRef) URL() string

type Topic

type Topic struct {
	ID      string
	Title   string
	Summary string
	Body    string
	Doc     DocRef
	// contains filtered or unexported fields
}

func Directive

func Directive(name directive.Name) (Topic, bool)

Directive resolves a canonical directive name to its topic.

func Lookup

func Lookup(query string) (Topic, bool)

Lookup resolves a topic ID, title, alias, keyword, or an @directive.

func Search(query string) []Topic

Search returns topics whose metadata or body contains every query token.

func Suggest

func Suggest(query string) []Topic

Suggest matches metadata only, so completion results stay precise.

func Topics

func Topics() []Topic

Topics returns every topic in display order.

Jump to

Keyboard shortcuts

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