save docs
This commit is contained in:
parent
45a9f58b42
commit
03c7d1eff1
1 changed files with 7 additions and 1 deletions
|
|
@ -63,6 +63,10 @@ async function createDiagram() {
|
||||||
createDiagram();
|
createDiagram();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Edge/CDN
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
## API Reference
|
## API Reference
|
||||||
|
|
||||||
### `new D2()`
|
### `new D2()`
|
||||||
|
|
@ -87,7 +91,7 @@ D2.js uses Bun, so install this first.
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/terrastruct/d2.git
|
git clone https://github.com/terrastruct/d2.git
|
||||||
cd d2/d2js/js
|
cd d2/d2js/js
|
||||||
./make.sh
|
./make.sh all
|
||||||
```
|
```
|
||||||
|
|
||||||
If you change the main D2 source code, you should regenerate the WASM file:
|
If you change the main D2 source code, you should regenerate the WASM file:
|
||||||
|
|
@ -97,6 +101,8 @@ If you change the main D2 source code, you should regenerate the WASM file:
|
||||||
|
|
||||||
### Running the Development Server
|
### Running the Development Server
|
||||||
|
|
||||||
|
Make sure you've built already, then run:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
bun run dev
|
bun run dev
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue