astro-dgmo 0.11.13 → 0.11.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +15 -6
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -122,18 +122,27 @@ A -> B
122
122
 
123
123
  See the [`remark-dgmo` README](https://github.com/diagrammo/remark-dgmo) for the full option matrix.
124
124
 
125
- ## Live links (on by default)
125
+ ## <img src="https://diagrammo.app/icons/live-link.svg" width="20" height="20" alt=""> Live links (on by default)
126
126
 
127
- A fence can name a published [Diagrammo Cloud](https://diagrammo.app) diagram
128
- instead of carrying its own source, so the page stops going stale the day it is
129
- written:
127
+ A **live link** is a diagram somebody shows on the web from the [Diagrammo app](https://diagrammo.app). The app marks it with an amber globe <img src="https://diagrammo.app/icons/live-link.svg" width="14" height="14" alt="amber globe">. Put its link in a fence and your page draws the diagram as its author last saved it — each time your site builds.
128
+
129
+ **Get the link in the app** ([see where in the app](https://diagrammo.app/docs/live-links/#getting-the-link)) — either route copies it to your clipboard:
130
+
131
+ - Open the diagram and press **Share** on the left rail (or **⌘E** / **Ctrl+E**), then **Show on the web** → **Show**.
132
+ - Or right-click the diagram in the file list and choose **Show and copy link**.
133
+
134
+ To copy it again later, open the diagram and press the lit amber globe on the left rail.
135
+
136
+ **Paste it into a `dgmo` fence**, on a line of its own:
130
137
 
131
138
  ````md
132
139
  ```dgmo
133
- live-link dgm_01HQ3RSTUV
140
+ https://online.diagrammo.app/d/dgm_01M3PG3DQ6S89W7ZFM5Z06J1CD
134
141
  ```
135
142
  ````
136
143
 
144
+ Once you know the id, `live-link dgm_01M3PG3DQ6S89W7ZFM5Z06J1CD` inside the fence does the same job.
145
+
137
146
  No configuration needed — this resolves out of the box. To stop your build
138
147
  fetching anything:
139
148
 
@@ -172,7 +181,7 @@ integrations: [dgmo({ liveLink: { refresh: 'render' } })];
172
181
  ```
173
182
 
174
183
  The full behaviour, including what each kind of failure does to your build, is in
175
- the [`remark-dgmo` README](https://github.com/diagrammo/remark-dgmo#live-links-on-by-default).
184
+ the [`remark-dgmo` README](https://github.com/diagrammo/remark-dgmo#-live-links-on-by-default).
176
185
 
177
186
  ## Working reference site
178
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-dgmo",
3
- "version": "0.11.13",
3
+ "version": "0.11.15",
4
4
  "description": "Astro integration to render DGMO diagrams from fenced code blocks at build time. Powered by @diagrammo/dgmo.",
5
5
  "license": "MIT",
6
6
  "author": "Diagrammo LLC",
@@ -75,15 +75,16 @@
75
75
  "overrides": {
76
76
  "esbuild": ">=0.28.1 <1",
77
77
  "js-yaml": ">=4.3.2 <5",
78
- "sharp": ">=0.35.0 <1"
78
+ "sharp": ">=0.35.0 <1",
79
+ "source-map-js": ">=1.2.2 <2"
79
80
  }
80
81
  },
81
82
  "dependencies": {
82
- "remark-dgmo": ">=0.16.4 <1"
83
+ "remark-dgmo": ">=0.17.0 <1"
83
84
  },
84
85
  "devDependencies": {
85
86
  "@astrojs/markdown-remark": "^7.3.1",
86
- "@diagrammo/dgmo": ">=0.90.0 <1",
87
+ "@diagrammo/dgmo": ">=0.92.1 <1",
87
88
  "@eslint/js": "^10.0.1",
88
89
  "@types/node": "^22.20.1",
89
90
  "astro": "^7.3.2",