- Repository:
git://eleglicity.com/go/site-catalog.git - Go import metadata:
https://eleglicity.com/go-modules/site-catalog/
Go import metadata is used by go get; it is not documentation and is intentionally blank in a browser.
Versionless commands resolve to the latest published release (v0.1.0):
go get eleglicity.com/go-modules/site-catalog
Explicit @latest forms:
go get eleglicity.com/go-modules/site-catalog@latest
Versions
| Version | Commit | Go commands | Artifacts |
|---|---|---|---|
v0.1.0 (latest) |
e73dac8dd437c300f1626eefc41c0f57dab6f579 |
go get eleglicity.com/go-modules/site-catalog@v0.1.0 |
— |
Overview
site-catalog defines the strict YAML contract for source-owned module
and GWT documentation rendered into the eleglicity.com catalog. The Go
types own the document shape, the section IDs are fixed, and the catalog
renderer supplies layout, versions, and checksums.
Each documented module keeps its content in a nested docs/site module
and validates it against this schema before the catalog pins the commit.
Install
Use the published Go module:
go get eleglicity.com/go-modules/site-catalog
The module is private; set
GOPRIVATE=eleglicity.com/go-modules/site-catalog when GOPROXY=direct
must bypass the public checksum database.
Usage
Author one catalog.yaml with module metadata and the five required
sections, then validate it in a test:
doc, err := sitecatalog.Decode(bytes.NewReader(catalogYAML))
Required section IDs, in render order, come from
sitecatalog.SectionIDs(): overview, install, usage, mechanism,
and maintenance.
Mechanism
Decode enables strict YAML field checking, rejects multiple YAML
documents, and accepts only the fixed section set with non-empty bodies.
Module URLs must be absolute. There is no in-document schema version:
the immutable module tag versions the contract.
The catalog renderer injects repository versions, commits, release checksums, and document hashes from pinned sources and lock files. Those values are never authored in the document.
Maintenance
Release one immutable tag for any contract change. Documentation-only
changes do not alter the schema and may be pinned by commit. Run
GOWORK=off go test ./... in this nested module before publishing.
Consumers update their pinned site-catalog requirement deliberately;
the catalog keeps the exact documentation commit in sources.lock.