html

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Tag feature.Tag = "pages-formats-html"

Variables

This section is empty.

Functions

This section is empty.

Types

type CDocument

type CDocument struct {
	search.CDocument

	Headings []string `json:"headings"`
	Links    []string `json:"links"`
}

func NewHtmlDocument

func NewHtmlDocument(language, url, title string) (doc *CDocument)

func (*CDocument) AddHeading

func (d *CDocument) AddHeading(text string)
func (d *CDocument) AddLink(text string)

func (*CDocument) Self

func (d *CDocument) Self() interface{}

type CFeature

type CFeature struct {
	feature.CFeature
}

func (*CFeature) AddSearchDocumentMapping

func (f *CFeature) AddSearchDocumentMapping(tag language.Tag, indexMapping *mapping.IndexMappingImpl)

func (*CFeature) Extensions

func (f *CFeature) Extensions() (extensions []string)

func (*CFeature) IndexDocument

func (f *CFeature) IndexDocument(thing interface{}) (out interface{}, err error)

func (*CFeature) Init

func (f *CFeature) Init(this interface{})

func (*CFeature) Label

func (f *CFeature) Label() (label string)

func (*CFeature) Make

func (f *CFeature) Make() Feature

func (*CFeature) Name

func (f *CFeature) Name() (name string)

func (*CFeature) NewDocumentMapping

func (f *CFeature) NewDocumentMapping(tag language.Tag) (doctype, analyzer string, dm *mapping.DocumentMapping)

func (*CFeature) Prepare

func (f *CFeature) Prepare(ctx context.Context, content string) (out context.Context, err error)

func (*CFeature) Process

func (f *CFeature) Process(ctx context.Context, t types.Theme, content string) (html htmlTemplate.HTML, redirect string, err *types.EnjinError)

func (*CFeature) SearchDocumentMapping

func (f *CFeature) SearchDocumentMapping(tag language.Tag) (doctype string, dm *mapping.DocumentMapping)

type Document

type Document interface {
	search.Document
	AddHeading(text string)
}

type Feature

type Feature interface {
	feature.Feature
	types.Format
}

type MakeFeature

type MakeFeature interface {
	Make() Feature
}

func New

func New() MakeFeature

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL