demo-vault-populate
Builds a complete PopulateFilesParams map for a plugin’s in-repo demo-vault/, ready to seed into the temp vault before Obsidian opens it. Composes readDemoVaultTree (the note tree) with the two pieces it deliberately omits: selected .obsidian/* config files, and the built binaries (+ data.json) of any extra community plugins the demo vault depends on (e.g. CodeScript Toolkit, demo-vault-helper).
Pairs with the enableCommunityPlugins option of the global-setup createSetup: this seeds the binaries, that turns them on. It intentionally does NOT write community-plugins.json — the harness owns that file (it lists the plugin-under-test), and enabling the extras persists them.
Interfaces
Section titled “Interfaces”| Interface | Description |
|---|---|
| BuildDemoVaultPopulateParams | Parameters for buildDemoVaultPopulate. |
| InjectPluginParams | A community plugin to seed into the demo vault alongside the note tree. |
Functions
Section titled “Functions”| Function | Description |
|---|---|
| buildDemoVaultPopulate | Builds the full populate map for a plugin’s demo-vault/: the note tree, the selected .obsidian/* config files, and every injected plugin’s binaries (+ optional data.json). |