theme

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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