Documentation
¶
Overview ¶
Package site builds the developer docs at cernly.dev from Markdown pages: HTML in the brand's layout, each page's Markdown beside it, llms.txt, llms-full.txt, sitemap.xml, JSON-LD and the JSON Schemas. Same sources, same bytes: no dates or build ids in the output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Sections = []string{"Use", "How", "Project"}
Sections, in the order llms.txt and the sidebar list them. Pages without a section are the home page and 404.
Functions ¶
Types ¶
type Options ¶
type Options struct {
// Src holds layout.html, static/ and the optional agents.md, the notes
// for AI agents that open llms.txt.
Src string
// Pages holds the Markdown pages; default Src/pages.
Pages string
// Schema holds the JSON Schemas, served at /schema/.
Schema string
// Skills holds agent skills, served at /skills/; skipped when empty or
// missing.
Skills string
// Out is emptied and written.
Out string
}
Options name the folders a build reads and writes.
type Page ¶
type Page struct {
Title, Description, Path, Section string
Order int
// Commands are the CLI commands the page documents, for the flag check.
Commands []string
// Markdown is the page without its front matter.
Markdown []byte
// File is where the page was read from, for error messages.
File string
}
Page is one Markdown file under the pages folder.