Versions in this module Expand all Collapse all v0 v0.1.0 Aug 5, 2026 Changes in this version + const DefaultMaxChunkBytes + const DocsiteMarker + const Group + var ErrCapabilityMissing = errors.New("corpus: forge provider cannot enumerate the namespace") + var ErrGenerated = errors.New("corpus: generated file") + func BlobURL(repoURL, commitSHA, repoPath string, line int) string + func IsGenerated(body string) bool + func SiteURL(base, repoPath string) (string, bool) + func Slug(heading string) string + func SplitIdentifier(name string) string + type Candidate struct + HasZensical bool + PagesURL string + Path string + Visibility forge.Visibility + type Chunk struct + Anchor string + Body string + Heading string + HeadingPath string + Line int + Ordinal int + SearchTerms string + type Clause int + const ClauseArchived + const ClauseExcluded + const ClauseNamespace + const ClauseNoDocsite + const ClauseNoPages + const ClauseNone + const ClauseUnresolved + const ClauseVisibility + func (c Clause) String() string + type Discoverer struct + func NewDiscoverer(p forge.Provider) (*Discoverer, error) + func (d *Discoverer) Discover(ctx context.Context) ([]Source, error) + type Document struct + Chunks []Chunk + Title string + func Split(markdown string, opts ...SplitOption) Document + func SplitGo(filename, src string) (Document, error) + type Kind int + const KindChangelog + const KindCode + const KindDoc + const KindNone + const KindReadme + func Classify(repoPath string) Kind + func (k Kind) String() string + type Source struct + Repository forge.Repository + SiteURL string + Verdict Verdict + func Qualifying(sources []Source) []Source + type SplitOption func(*splitConfig) + func WithMaxChunkBytes(n int) SplitOption + type Verdict struct + Clause Clause + Qualifies bool + Reason string + func Evaluate(c Candidate) Verdict + func Screen(c Candidate) (Verdict, bool)