Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintMessage ¶
func PrintMessage(msg string)
Types ¶
type CmdArgs ¶
type CmdArgs struct { ConfigFile string OutputDir string GlobalVars map[string]string JsUrl string CssUrl string IncludeViews []string ExcludeViews []string IncludeControls []string ExcludeControls []string MathFontUrl string }
all the cmdargs that are needed for Config file reading
func NewDefaultCmdArgs ¶
func NewDefaultCmdArgs() CmdArgs
type Config ¶
type Config struct { Views map[string]map[string]string `json:"views"` // first key is group name Controls map[string]map[string][]string `json:"controls"` // input can be multiple paths/groups Files map[string]string `json:"files"` // rel paths in configFile, but abs paths here CssUrl string `json:"css-url"` // for stylesheet link StylePath string `json:"style"` JsUrl string `json:"js-url"` PxPerRem int `json:"px-per-rem"` // for px(<X rem>) functin MathFontUrl string `json:"math-font-url"` // for math font woff2 file Search SearchConfig `json:"search"` // contains filtered or unexported fields }
func ReadConfigFile ¶
func (*Config) GetControls ¶
func (*Config) GetMathFontDst ¶
type SearchConfig ¶
type SearchConfig struct { Indices map[string]SearchIndexConfig `json:"indices"` Ignore []string `json:"ignore"` }
type SearchIndexConfig ¶
type SearchIndexConfig struct { TitleQuery string `json:"title-query"` ContentQueries []string `json:"content-queries"` Pages []string `json:"pages"` // XXX: is "views" a better name? // contains filtered or unexported fields }
func (*SearchIndexConfig) ContentMatch ¶
func (s *SearchIndexConfig) ContentMatch(xpath []tree.Tag) bool
func (*SearchIndexConfig) TitleMatch ¶
func (s *SearchIndexConfig) TitleMatch(xpath []tree.Tag) bool
type XQueryData ¶
type XQueryData struct {
// contains filtered or unexported fields
}
func ParseXQuery ¶
func ParseXQuery(source string) (*XQueryData, error)
func (*XQueryData) Length ¶
func (q *XQueryData) Length() int
Click to show internal directories.
Click to hide internal directories.