File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -215,8 +215,9 @@ pub fn get_generate_ctx<'a, 'ctx>(
215
215
let mut map = IndexMap :: new ( ) ;
216
216
let scoped_name = format ! ( "@{scope}/{package}" ) ;
217
217
218
+ let import = format ! ( "\n Import symbol\n {}" , deno_doc:: html:: usage_to_md( ctx, doc_nodes, & url) ) ;
219
+
218
220
if !runtime_compat. deno . is_some_and ( |compat| !compat) {
219
- let import = format ! ( "\n Import symbol\n {}" , deno_doc:: html:: usage_to_md( ctx, doc_nodes, & url) ) ;
220
221
map. insert (
221
222
UsageComposerEntry {
222
223
name : "Deno" . to_string ( ) ,
@@ -229,7 +230,6 @@ pub fn get_generate_ctx<'a, 'ctx>(
229
230
}
230
231
231
232
if !runtime_compat. node . is_some_and ( |compat| !compat) {
232
- let import = deno_doc:: html:: usage_to_md ( ctx, doc_nodes, & url) ;
233
233
map. insert (
234
234
UsageComposerEntry {
235
235
name : "npm" . to_string ( ) ,
@@ -260,7 +260,6 @@ pub fn get_generate_ctx<'a, 'ctx>(
260
260
}
261
261
262
262
if !runtime_compat. bun . is_some_and ( |compat| !compat) {
263
- let import = deno_doc:: html:: usage_to_md ( ctx, doc_nodes, & url) ;
264
263
map. insert (
265
264
UsageComposerEntry {
266
265
name : "Bun" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments