Documentation
¶
Index ¶
- func EntityIndexRelativePath() string
- func ListTopicDefinitions(cfg config.Config) ([]topics.Definition, error)
- func NoteRelativePath(sourceKind, year, externalID string) string
- func ReadTopicDefinition(cfg config.Config, topic string) (topics.Definition, error)
- func RenderEntity(entity entities.Entity) string
- func RenderEntityIndex(entitiesList []entities.Entity) string
- func RenderItem(item model.Item) (string, error)
- func RenderItemWithOptions(item model.Item, opts RenderOptions) (string, error)
- func RenderSource(source model.SourceDocument, backlinks []model.SourceBacklink) (string, error)
- func RenderTopic(graph topics.TopicMap) string
- func RenderTopicIndex(defs []topics.Definition) string
- func SourceNoteRelativePath(sourceType, slug string) string
- func StatNote(cfg config.Config, relPath string) (os.FileInfo, error)
- func TopicIndexRelativePath() string
- func TopicNoteRelativePath(topic string) string
- func WriteEntity(cfg config.Config, entity entities.Entity) error
- func WriteEntityIndex(cfg config.Config, entitiesList []entities.Entity) error
- func WriteItem(cfg config.Config, item model.Item) error
- func WriteSource(cfg config.Config, source model.SourceDocument, ...) error
- func WriteTopic(cfg config.Config, graph topics.TopicMap) error
- func WriteTopicIndex(cfg config.Config, defs []topics.Definition) error
- type RenderOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EntityIndexRelativePath ¶
func EntityIndexRelativePath() string
func ListTopicDefinitions ¶
func ListTopicDefinitions(cfg config.Config) ([]topics.Definition, error)
func NoteRelativePath ¶
func ReadTopicDefinition ¶
func RenderEntity ¶
func RenderEntityIndex ¶
func RenderItemWithOptions ¶
func RenderItemWithOptions(item model.Item, opts RenderOptions) (string, error)
func RenderSource ¶
func RenderSource(source model.SourceDocument, backlinks []model.SourceBacklink) (string, error)
func RenderTopic ¶
func RenderTopicIndex ¶
func RenderTopicIndex(defs []topics.Definition) string
func SourceNoteRelativePath ¶
func TopicIndexRelativePath ¶
func TopicIndexRelativePath() string
func TopicNoteRelativePath ¶
func WriteEntityIndex ¶
func WriteSource ¶
func WriteSource(cfg config.Config, source model.SourceDocument, backlinks []model.SourceBacklink) error
func WriteTopicIndex ¶
func WriteTopicIndex(cfg config.Config, defs []topics.Definition) error
Types ¶
type RenderOptions ¶
type RenderOptions struct {
MediaProxyBaseURL string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.