Skip to content

Commit 1f8e760

Browse files
Merge pull request #1 from Cube707/startup-scripts
add usage page for startup-scripts
2 parents 5889c7e + 7178d58 commit 1f8e760

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
title: Startup-Scripts
3+
description: A guide on how to use startup-scripts.
4+
---
5+
6+
JS-Engine supports startup-scripts, similar to the CSS-snippets from Core-Obsidian.
7+
8+
You can select the script-file you want to use as startup-scripts and JS-Engine will run them for you when never Obsidian starts up.
9+
10+
:::note
11+
Different from Core-Obsidian, JS-Engine startup-scripts can not be stored inside the `.obsidian/` folder.
12+
They need to be somewhere inside your vault.
13+
:::
14+
15+
## Configuring Startup-Scripts
16+
17+
You can configure which files you want to have run from JS-Engines settings tab.
18+
19+
## Global Variables
20+
21+
JS-Engine runs the scripts in the same context as all other code-blocks.
22+
So the available global variable are the same and can be found [here](/obsidian-js-engine-plugin-docs/api/classes/api/).

0 commit comments

Comments
 (0)