book

package
v0.0.0-...-3b5ec37 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

*

  • book package contains Go functions for dealing directly with the
  • EBW book configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Destination    string `yaml:"destination"`
	MathjaxEnabled bool   `yaml:"mathjax-enabled"`
}

func ReadConfig

func ReadConfig(dir string) (*Config, error)

func (*Config) GetDestinationDir

func (c *Config) GetDestinationDir(subpaths ...string) string

type Prose

type Prose struct {
	Ignore []string `yaml:ignore`
}

func ReadProse

func ReadProse(dir string) (*Prose, error)

func (*Prose) IgnoreFilter

func (p *Prose) IgnoreFilter() func(fullname string) bool

func (*Prose) IgnoreFilterJS

func (p *Prose) IgnoreFilterJS() template.JS

type ProseFile

type ProseFile struct {
	Prose *Prose `yaml:"prose"`
}

Jump to

Keyboard shortcuts

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