You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10-15
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,7 @@
4
4
D2 Obsidian Plugin
5
5
</h2>
6
6
7
-
D2 is a modern diagram scripting language thats turns text to diagrams. The source code
8
-
for D2, as well as install instructions and all other information, can be found at
7
+
D2 is a modern diagram scripting language thats turns text to diagrams. The source code for D2, as well as install instructions and all other information, can be found at
Settings > Community plugins > Browse > Search for "D2"
23
22
24
-
**important**: [D2](https://github.com/terrastruct/d2) must be installed for this plugin
25
-
to work currently. We will later on introduce a remote API as an option, but currently
26
-
this plugin calls your local installation of D2.
23
+
**important**: [D2](https://github.com/terrastruct/d2) must be installed for this plugin to work currently. We will later on introduce a remote API as an option, but currently this plugin calls your local installation of D2.
27
24
28
25
## Configurations
29
26
30
27
-`Layout engine`: D2 supports multiple layout engines, which can significantly affect the look of your diagram.
31
28
-`Theme ID`: For a list of available themes, visit the [D2 repository](https://github.com/terrastruct/d2/tree/master/d2themes).
32
-
-`Debounce`: Number of milliseconds to wait after a change has made to refresh the
33
-
diagram (min 100).
34
-
-`Path`: Customize the path to `d2` (optional). We check common places D2 might be
35
-
installed, along with your system path. However, your OS or setup may require you to
36
-
input your path to `d2` manually.
29
+
-`Pad`: Number of pixels padded around the rendered diagram.
30
+
-`Sketch mode`: Render the diagram to look like it was sketched by hand.
31
+
-`Debounce`: Number of milliseconds to wait after a change has made to refresh the diagram (min 100).
32
+
-`Path`: Customize the path to `d2` (optional). We check common places D2 might be installed, along with your system path. However, your OS or setup may require you to input your path to `d2` manually. To do so, type `where d2` into your terminal, and copy everything in the path up until `/d2` and paste it into this configuration.
37
33
38
34
## Usage
39
35
@@ -52,14 +48,13 @@ Hello -> World
52
48
53
49
## FAQ
54
50
51
+
- I have D2 installed but I'm running into `D2 Compilation Error: d2: command not found`
52
+
- The Obsidian plugin may not be able to locate your D2 installation. Get the path to the D2 installation by executing `where d2` in the command line, then copy that path minus the executable itself into the `Path` plugin setting (so if the path is `/usr/local/bin/d2`, then you want to copy `/usr/local/bin`).
55
53
- I have a question or need help.
56
54
- The best way to get help is to ask on [D2 Discord](https://discord.gg/NF6X8K4eDq).
57
55
- I'd like to contribute.
58
-
- We welcome contributions! Please pick one from an existing Issue, or open one if none
59
-
exists.
56
+
- We welcome contributions! Please pick one from an existing Issue, or open one if none exists.
60
57
- I have a feature request, proposal, or bug report.
61
-
- Please open up a Github Issue. If it's D2-specific, please open it in the [D2
62
-
repository](https://github.com/terrastruct/d2). If it's specific to this plugin,
63
-
please open it here.
58
+
- Please open up a Github Issue. If it's D2-specific, please open it in the [D2 repository](https://github.com/terrastruct/d2). If it's specific to this plugin, please open it here.
64
59
- I have a private inquiry.
65
60
- Please reach out at [hi@d2lang.com](hi@d2lang.com).
0 commit comments