Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigService ¶
type ContentService ¶
type ContentService interface { WalkPages(langIndex int, walker contenthub.WalkFunc) error GetPageSources(page contenthub.Page) ([]contenthub.PageSource, error) WalkTaxonomies(langIndex int, walker contenthub.WalkTaxonomyFunc) error GlobalPages(langIndex int) contenthub.Pages GlobalRegularPages() contenthub.Pages SearchPage(ctx context.Context, pages contenthub.Pages, page contenthub.Page) (contenthub.Pages, error) GetPageFromPath(langIndex int, path string) (contenthub.Page, error) GetPageRef(context contenthub.Page, ref string, home contenthub.Page) (contenthub.Page, error) }
type ContentSpec ¶
type Descriptor ¶
type Descriptor struct { // The content to publish. Src io.Reader // The OutputFormat of this content. OutputFormat output.Format // Where to publish this content. This is a filesystem-relative path. TargetPath string // If set, will replace all relative URLs with this one. AbsURLPath string }
Descriptor describes the needed publishing chain for an item.
type LanguageService ¶
type Publisher ¶
type Publisher interface {
Publish(d Descriptor) error
}
Publisher publishes a result file.
type ResourceService ¶
type Services ¶
type Services interface { ContentService TranslationService ResourceService LanguageService FsService URLService ConfigService SitemapService }
type SitemapService ¶ added in v0.1.6
type TranslationService ¶ added in v0.1.1
type URLService ¶
type URLService interface {
BaseUrl() string
}
Click to show internal directories.
Click to hide internal directories.