From 03c7d1eff1739e90161da1b0e9fb9c8b994ab535 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Mon, 13 Jan 2025 20:21:18 -0700 Subject: [PATCH] save docs --- d2js/js/README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/d2js/js/README.md b/d2js/js/README.md index 6ce7597c0..6ab63712e 100644 --- a/d2js/js/README.md +++ b/d2js/js/README.md @@ -63,6 +63,10 @@ async function createDiagram() { createDiagram(); ``` +### Edge/CDN + +TODO + ## API Reference ### `new D2()` @@ -87,7 +91,7 @@ D2.js uses Bun, so install this first. ```bash git clone https://github.com/terrastruct/d2.git cd d2/d2js/js -./make.sh +./make.sh all ``` 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 +Make sure you've built already, then run: + ```bash bun run dev ```