docsite

package
v0.1.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 14 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

@facet: navigation/documentation/guided-documentation @facet-role: primary

@facet: navigation/documentation/guided-documentation @facet-role: related

Package docsite builds audience-guided static documentation from FACET evidence.

@facet: navigation/documentation/guided-documentation

Index

Constants

View Source
const Version = 1

Variables

This section is empty.

Functions

func Build

func Build(root, destination string, c Config) (err error)

Build refuses existing destinations. Render in a sibling temporary directory, then rename only after every page and the lock are complete.

func Check

func Check(root, destination string, c Config) error

Check compares the complete current corpus (including added/removed records and anchors), editorial configuration, and rendered file digests.

func Key

func Key(reg, id string) string

Types

type Article

type Article struct {
	Description string            `json:"description,omitempty"`
	Topic       string            `json:"topic,omitempty"`
	Notes       []PerspectiveNote `json:"perspective_notes,omitempty"`
	Diagram     *Diagram          `json:"diagram,omitempty"`
	ID          string            `json:"id"`
	Title       string            `json:"title"`
	Kind        string            `json:"kind"`
	Audience    string            `json:"audience"`
	Category    string            `json:"category"`
	Tags        []string          `json:"tags"`
	Features    []string          `json:"features"`
	Sections    []Section         `json:"sections"`
	Order       int               `json:"order"`
}

type Audience

type Audience struct {
	ID          string   `json:"id"`
	Title       string   `json:"title"`
	Kind        string   `json:"kind"`
	Description string   `json:"description"`
	Features    []string `json:"features"`
}

type Cluster

type Cluster struct {
	Audience string   `json:"audience"`
	Topic    string   `json:"topic"`
	Features []string `json:"features"`
}

type Config

type Config struct {
	Mode          string                  `json:"mode,omitempty"`
	Language      string                  `json:"language,omitempty"`
	Catalog       bool                    `json:"catalog,omitempty"`
	Topics        []Topic                 `json:"topics,omitempty"`
	FeatureLabels map[string]FeatureLabel `json:"feature_labels,omitempty"`
	Visibility    string                  `json:"visibility,omitempty"`
	Version       int                     `json:"version"`
	Title         string                  `json:"title"`
	Description   string                  `json:"description"`
	Audiences     []Audience              `json:"audiences"`
	Articles      []Article               `json:"articles"`
}

func Compose

func Compose(inv Inventory, c Config) (Config, error)

Compose creates conservative drafts from declared summaries and populated Knowledge answers only. It never treats anchored implementation as a new, reviewed answer, and never turns a scenario into an invented walkthrough.

func ReadConfig

func ReadConfig(path string) (Config, error)

type Diagram

type Diagram struct {
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Nodes       []Node   `json:"nodes"`
	Edges       []Edge   `json:"edges"`
	Sources     []string `json:"sources"`
}

type Edge

type Edge struct {
	From  string `json:"from"`
	To    string `json:"to"`
	Label string `json:"label"`
}

type Evidence

type Evidence struct {
	ID        string         `json:"id"`
	Registry  string         `json:"registry"`
	Category  string         `json:"category"`
	Topic     string         `json:"topic"`
	Summary   string         `json:"summary"`
	Lifecycle string         `json:"lifecycle"`
	Fields    map[string]any `json:"fields"`
	Sources   []Source       `json:"sources"`
	Anchors   []facet.Anchor `json:"anchors"`
	Gaps      []string       `json:"gaps"`
}

type FeatureLabel

type FeatureLabel struct {
	Title       string `json:"title"`
	Description string `json:"description"`
}

type FeatureView

type FeatureView struct {
	Evidence    Evidence
	Title       string
	Description string
	URL         string
	Topic       string
	Knowledge   []KnowledgeView
}

type Inventory

type Inventory struct {
	Version int        `json:"version"`
	Records []Evidence `json:"records"`
}

func Collect

func Collect(root string) (Inventory, error)

Collect uses the registry's own configuration and anchor scanner. It does not interpret a declared test reference as proof that a test was executed.

type KnowledgeView

type KnowledgeView struct {
	Title string
	Body  string
	Kind  string
}

type Lock

type Lock struct {
	Engine          string   `json:"engine"`
	Version         int      `json:"version"`
	InventoryDigest string   `json:"inventory_digest"`
	ConfigDigest    string   `json:"config_digest"`
	Files           []Source `json:"files"`
}

type Node

type Node struct {
	ID    string `json:"id"`
	Label string `json:"label"`
	X     int    `json:"x"`
	Y     int    `json:"y"`
}

type Page

type Page struct {
	URL          string
	Kind         string
	Topics       []TopicView
	Features     []FeatureView
	AllArticles  []Article
	Related      []FeatureView
	FeatureCount int
	Site         Config
	Title        string
	Intro        string
	Audience     *Audience
	Article      *Article
	Audiences    []Audience
	Articles     []Article
	Records      []Evidence
	Plan         Plan
}

type PerspectiveNote

type PerspectiveNote struct {
	Perspective string   `json:"perspective"`
	Title       string   `json:"title"`
	Body        string   `json:"body"`
	Sources     []string `json:"sources"`
}

type Plan

type Plan struct {
	Version    int                 `json:"version"`
	Clusters   []Cluster           `json:"clusters"`
	Gaps       map[string][]string `json:"gaps"`
	Unassigned []string            `json:"unassigned"`
}

func MakePlan

func MakePlan(inv Inventory, c Config) (Plan, error)

type SearchEntry

type SearchEntry struct {
	Lifecycle   string `json:"lifecycle,omitempty"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Text        string `json:"text"`
	URL         string `json:"url"`
	Category    string `json:"category"`
	Kind        string `json:"kind"`
}

type Section

type Section struct {
	Items   []string `json:"items,omitempty"`
	Code    string   `json:"code,omitempty"`
	Table   *Table   `json:"table,omitempty"`
	Title   string   `json:"title"`
	Body    string   `json:"body"`
	Sources []string `json:"sources"`
}

type Source

type Source struct {
	Path   string `json:"path"`
	Digest string `json:"digest"`
}

type Table

type Table struct {
	Columns []string   `json:"columns"`
	Rows    [][]string `json:"rows"`
}

type Topic

type Topic struct {
	ID          string   `json:"id"`
	Title       string   `json:"title"`
	Description string   `json:"description"`
	Prefixes    []string `json:"prefixes"`
}

type TopicView

type TopicView struct {
	Topic    Topic
	URL      string
	Articles []Article
	Features []FeatureView
}

Jump to

Keyboard shortcuts

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