Documentation
¶
Index ¶
- Variables
- func ProvisionStudio(ctx context.Context, d *kernel.Deps, in ProvisionInput) error
- func Render(doc Document) (string, error)
- func Validate(doc Document) error
- func ValidatePublication(doc Document) error
- type BlockSpec
- type Document
- type Draft
- type Entry
- type Module
- type ProvisionInput
- type Section
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrConflict = errors.New("builder: document changed; reload before saving")
View Source
var ErrForbidden = content.ErrForbidden
View Source
var ErrNotFound = content.ErrNotFound
View Source
var ErrProfile = errors.New("builder: invalid site profile")
Functions ¶
func ProvisionStudio ¶
ProvisionStudio resumes its own interrupted import, never adopts an existing site.
func ValidatePublication ¶
ValidatePublication allows incomplete drafts but requires a visible page heading for publishing.
Types ¶
type ProvisionInput ¶
type ProvisionInput struct{ Title, Template, Locale, Email string }
ProvisionInput selects a complete editable website for an empty tenant.
type Section ¶
type Section struct {
HeroScene string `json:"hero_scene,omitempty"`
Feed string `json:"feed,omitempty"`
ID string `json:"id"`
Kind string `json:"kind"`
Variant string `json:"variant"`
Title string `json:"title"`
Text string `json:"text"`
Image string `json:"image"`
ImageAlt string `json:"image_alt"`
Link string `json:"link"`
LinkLabel string `json:"link_label"`
Items []Entry `json:"items"`
Hidden bool `json:"hidden"`
}
func DefaultSection ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.