Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOCAL = "local" REMOTE = "remote" )
Variables ¶
View Source
var ( CustomConf = "custom/app.ini" AppVer string ProdMode bool HTTPPort int Site struct { Name string Desc string UseCDN bool URL string } Page struct { HasLandingPage bool DocsBaseURL string UseCustomTpl bool NavbarTplPath string HomeTplPath string DocsTplPath string FooterTplPath string DisqusTplPath string DuoShuoTplPath string } Items []*NavbarItem } Asset struct { CustomCSS string } Docs struct { Type DocType Target string Secret string Langs []string // Only used for languages are not en-US or zh-CN to bypass error panic. Locales map[string][]byte } Extension struct { EnableEditPage bool EditPageLinkFormat string EnableDisqus bool DisqusShortName string EnableDuoShuo bool DuoShuoShortName string HighlightJSCustomCSS string EnableSearch bool GABlock string } Cfg *ini.File )
Functions ¶
func NewContext ¶
func NewContext()
Types ¶
type NavbarItem ¶
type NavbarItem struct {
Click to show internal directories.
Click to hide internal directories.