vault

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 18 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 NoteRelativePath(sourceKind, year, externalID string) string

func ReadTopicDefinition

func ReadTopicDefinition(cfg config.Config, topic string) (topics.Definition, error)

func RenderEntity

func RenderEntity(entity entities.Entity) string

func RenderEntityIndex

func RenderEntityIndex(entitiesList []entities.Entity) string

func RenderItem

func RenderItem(item model.Item) (string, error)

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 RenderTopic(graph topics.TopicMap) string

func RenderTopicIndex

func RenderTopicIndex(defs []topics.Definition) string

func SourceNoteRelativePath

func SourceNoteRelativePath(sourceType, slug string) string

func StatNote

func StatNote(cfg config.Config, relPath string) (os.FileInfo, error)

func TopicIndexRelativePath

func TopicIndexRelativePath() string

func TopicNoteRelativePath

func TopicNoteRelativePath(topic string) string

func WriteEntity

func WriteEntity(cfg config.Config, entity entities.Entity) error

func WriteEntityIndex

func WriteEntityIndex(cfg config.Config, entitiesList []entities.Entity) error

func WriteItem

func WriteItem(cfg config.Config, item model.Item) error

func WriteSource

func WriteSource(cfg config.Config, source model.SourceDocument, backlinks []model.SourceBacklink) error

func WriteTopic

func WriteTopic(cfg config.Config, graph topics.TopicMap) error

func WriteTopicIndex

func WriteTopicIndex(cfg config.Config, defs []topics.Definition) error

Types

type RenderOptions

type RenderOptions struct {
	MediaProxyBaseURL string
}

Jump to

Keyboard shortcuts

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