theme

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllThemes = []string{"default", "github"}

Functions

func Set

func Set(c Config)

Types

type Base

type Base struct{}

func (*Base) CSS

func (base *Base) CSS() template.CSS

func (*Base) HTML

func (base *Base) HTML(md []byte) template.HTML

func (*Base) JS

func (base *Base) JS() template.JS

type Config

type Config struct {
	HideNavBar   bool
	HideMenuIcon bool
	FixedSidebar bool
	ChangeTitle  bool
}

type Default

type Default struct {
	Base
}

func (*Default) CSS

func (d *Default) CSS() template.CSS

func (*Default) JS

func (*Default) JS() template.JS

type Github

type Github struct {
	Base
}

func (*Github) CSS

func (g *Github) CSS() template.CSS

type Theme

type Theme interface {
	HTML(md []byte) template.HTML
	CSS() template.CSS
	JS() template.JS
}

func Get

func Get(name string) Theme

Jump to

Keyboard shortcuts

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