Documentation
¶
Index ¶
- func ConvertDateFormat(jsDateFormat string) string
- func FilenameToTitle(format FilenameFormat, filename string) (string, error)
- func TitleToFilename(format FilenameFormat, title string) (string, error)
- type DefaultTemplates
- type FileConfig
- type FilenameFormat
- type GraphConfig
- type JournalConfig
- type PropertyConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDateFormat ¶
func FilenameToTitle ¶
func FilenameToTitle(format FilenameFormat, filename string) (string, error)
func TitleToFilename ¶
func TitleToFilename(format FilenameFormat, title string) (string, error)
Types ¶
type DefaultTemplates ¶
type DefaultTemplates struct {
Journals string `edn:"journals"`
}
type FileConfig ¶
type FileConfig struct {
NameFormat FilenameFormat `edn:"name-format"`
}
type FilenameFormat ¶
type FilenameFormat string
const (
FilenameFormatTripleLowbar FilenameFormat = "triple-lowbar"
)
type GraphConfig ¶
type GraphConfig struct { JournalsDir string `edn:"journals-directory"` Journal JournalConfig `edn:"journal"` PagesDir string `edn:"pages-directory"` File FileConfig `edn:"file"` DefaultTemplates DefaultTemplates `edn:"default-templates"` Property PropertyConfig `edn:"property"` IgnoredPageReferencesKeywords []string `edn:"ignored-page-references-keywords"` }
func ParseConfig ¶
func ParseConfig(data []byte) (*GraphConfig, error)
type JournalConfig ¶
type PropertyConfig ¶
type PropertyConfig struct {
SeparatedByCommas []string `edn:"separated-by-commas"`
}
Click to show internal directories.
Click to hide internal directories.