Documentation
¶
Overview ¶
Package exportimport handles JSON round-trip, Markdown, and Obsidian vault export.
Index ¶
- func ExportJSON(ctx context.Context, store storage.Storage, project string) ([]byte, error)
- func ExportMarkdown(ctx context.Context, store storage.Storage, project string) (string, error)
- func ExportObsidian(ctx context.Context, store storage.Storage, project, vaultDir string) (int, error)
- func ImportJSON(ctx context.Context, store storage.Storage, data []byte) (int, int, error)
- type GraphExport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExportJSON ¶
ExportJSON exports the full graph as JSON.
func ExportMarkdown ¶
ExportMarkdown exports nodes as a Markdown document.
func ExportObsidian ¶
func ExportObsidian(ctx context.Context, store storage.Storage, project, vaultDir string) (int, error)
ExportObsidian exports the graph as an Obsidian vault (one .md file per node, wikilinks for edges). vaultDir must be an absolute path and must not escape above itself via ".." components.
Types ¶
Click to show internal directories.
Click to hide internal directories.