document

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindMarkdownLink = "markdown-link"
	KindHTMLAttr     = "html-attr"
	KindPathText     = "path-text"
	KindPathCode     = "path-code"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	Root     string
	Entry    string
	Excludes pattern.Matcher
}

type Graph

type Graph struct {
	Reachable  map[string]bool
	References []Reference
}

func BuildGraph

func BuildGraph(opts BuildOptions) (Graph, []diagnostic.Diagnostic)

type Reference

type Reference struct {
	SourceRel string
	TargetRaw string
	TargetRel string
	Kind      string
	Line      int
	Column    int
}

func ExtractReferences

func ExtractReferences(sourceRel string, data []byte) []Reference

Jump to

Keyboard shortcuts

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