html

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2026 License: GPL-3.0, GPL-3.0-or-later Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIDocsLib

func APIDocsLib() Node

func AnnotoriousLib

func AnnotoriousLib() []Node

func BaseLibs

func BaseLibs() []Node

func DarkModeToggle

func DarkModeToggle() Node

func MakeClass

func MakeClass(active bool) string

func MakeMenuItem

func MakeMenuItem(name string, url string, activated bool) Node

func MakeNavBar

func MakeNavBar(isActivated n.ActivePage, repoURL string) Node

func MakeNavigationButton

func MakeNavigationButton(url string, active bool, direction scr.ScrollingDirection, text string) Node

func MakePaginatedContent

func MakePaginatedContent(baseURL url.URL, table PaginationTable, p pagination.Pagination) Node

func MakePaginatedView

func MakePaginatedView(baseURL url.URL, title string, pagination pagination.Pagination,
	table PaginationTable, activePage n.ActivePage) Node

func MakePaginator

func MakePaginator(baseURL url.URL, currentPage, lastPage, numItems, totalItems int) Node

func MakePaginatorEllipsis

func MakePaginatorEllipsis() Node

func MakePaginatorNumberedButton

func MakePaginatorNumberedButton(baseURL url.URL, pageNumber int, isActive bool) Node

func MakeRepoButton

func MakeRepoButton(url string) Node
func MakeTextLink(url, text string) Node

func TableBody

func TableBody(rows []PaginationTableRow) gp.Node

func TableHeader

func TableHeader(fields []string) gp.Node

Types

type NavBarActivatedItems struct {
	Home        bool
	Collections bool
	Labels      bool
	API         bool
}

type PageBuilder

type PageBuilder struct {
	Title string

	ActivePage n.ActivePage
	Content    Node
	// contains filtered or unexported fields
}

func NewPageBuilder

func NewPageBuilder() *PageBuilder

func NewTitledPageBuilder

func NewTitledPageBuilder(title string) *PageBuilder

func (*PageBuilder) AddScripts

func (b *PageBuilder) AddScripts(scripts ...Node) *PageBuilder

func (*PageBuilder) Build

func (b *PageBuilder) Build() Node

func (*PageBuilder) Render

func (b *PageBuilder) Render(w io.Writer)

func (*PageBuilder) SetActive

func (b *PageBuilder) SetActive(a n.ActivePage) *PageBuilder

func (*PageBuilder) SetContent

func (b *PageBuilder) SetContent(c Node) *PageBuilder

func (*PageBuilder) SetError

func (b *PageBuilder) SetError(err error) *PageBuilder

type PaginationTable

type PaginationTable struct {
	Fields []string
	Rows   []PaginationTableRow
}

func (*PaginationTable) Build

func (t *PaginationTable) Build() gp.Node

type PaginationTableRow

type PaginationTableRow struct {
	Values []gp.Node
}

func (PaginationTableRow) Render

func (r PaginationTableRow) Render() gp.Node

type SpecTable

type SpecTable struct {
	Rows []SpecTableRow
}

func (*SpecTable) Render

func (t *SpecTable) Render() gp.Node

type SpecTableRow

type SpecTableRow struct {
	Name  string
	Value string
}

func (SpecTableRow) Render

func (r SpecTableRow) Render() gp.Node

Jump to

Keyboard shortcuts

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