Documentation
¶
Overview ¶
Package obsidian generates Obsidian vault exports from graph data.
Index ¶
- func GenerateCommunity(comm analyze.Community, nodeMap map[string]*graph.Node, degrees map[string]int) string
- func GenerateIndex(nodes []*graph.Node, edges []*graph.Edge, godNodes []analyze.HubNode, ...) string
- func GenerateNode(node *graph.Node, outgoing, incoming map[string][]*graph.Edge, ...) string
- func SanitizeName(id string) string
- type Generator
- type VaultContent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCommunity ¶
func GenerateCommunity(comm analyze.Community, nodeMap map[string]*graph.Node, degrees map[string]int) string
GenerateCommunity creates a community page.
func GenerateIndex ¶
func GenerateIndex(nodes []*graph.Node, edges []*graph.Edge, godNodes []analyze.HubNode, communities *analyze.ClusterResult) string
GenerateIndex creates the index.md content.
func GenerateNode ¶
func GenerateNode(node *graph.Node, outgoing, incoming map[string][]*graph.Edge, nodeMap map[string]*graph.Node) string
GenerateNode creates a node page.
func SanitizeName ¶
SanitizeName creates a safe filename for Obsidian.
Types ¶
type Generator ¶
type Generator struct {
// TopN is the number of top hub nodes to include.
TopN int
// MinDegree is the minimum degree for a node to get its own page.
MinDegree int
}
Generator creates Obsidian markdown pages from graph data.
func NewGenerator ¶
func NewGenerator() *Generator
NewGenerator creates a Generator with default settings.
Click to show internal directories.
Click to hide internal directories.