Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultVaultDir ¶ added in v1.2.0
func DefaultVaultDir() string
DefaultVaultDir returns ~/Documents/vela — a visible location Obsidian can open directly.
func FindGraphFile ¶ added in v1.2.0
FindGraphFile resolves graph.json for the current working directory. Search order:
- ~/.vela/<cwd-basename>/graph.json — preferred (global store by project name)
- ~/.vela/graph.json — fallback for single-project setups
- ./.vela/graph.json — local override
- ./vela-out/graph.json — legacy backward-compat
func GraphFilePath ¶ added in v1.2.0
GraphFilePath returns the canonical graph.json path inside an out directory.
func Load ¶
Load reads ~/.vela/config.yaml and returns a Config. If the file does not exist, the defaults are returned without error.
func OutDir ¶ added in v1.2.0
OutDir returns the output directory for a given project root. Output is stored at ~/.vela/vela-out/ so all graphs live in one place.
func WriteDefault ¶
WriteDefault writes the default config to ~/.vela/config.yaml. Returns an error if the file already exists (use force=true to overwrite).
Types ¶
This section is empty.