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
- func Build(root, destination string, c Config) (err error)
- func Check(root, destination string, c Config) error
- func Key(reg, id string) string
- type Article
- type Audience
- type Cluster
- type Config
- type Diagram
- type Edge
- type Evidence
- type FeatureLabel
- type FeatureView
- type Inventory
- type KnowledgeView
- type Lock
- type Node
- type Page
- type PerspectiveNote
- type Plan
- type SearchEntry
- type Section
- type Source
- type Table
- type Topic
- type TopicView
Constants ¶
const Version = 1
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build refuses existing destinations. Render in a sibling temporary directory, then rename only after every page and the lock are complete.
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 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 ¶
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 ¶
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"`
}