Skip to content

Commit ca9bcee

Browse files
committed
fix
1 parent 979eb23 commit ca9bcee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

api/src/docs.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ pub fn get_generate_ctx<'a, 'ctx>(
215215
let mut map = IndexMap::new();
216216
let scoped_name = format!("@{scope}/{package}");
217217

218+
let import = format!("\nImport symbol\n{}", deno_doc::html::usage_to_md(ctx, doc_nodes, &url));
219+
218220
if !runtime_compat.deno.is_some_and(|compat| !compat) {
219-
let import = format!("\nImport symbol\n{}", deno_doc::html::usage_to_md(ctx, doc_nodes, &url));
220221
map.insert(
221222
UsageComposerEntry {
222223
name: "Deno".to_string(),
@@ -229,7 +230,6 @@ pub fn get_generate_ctx<'a, 'ctx>(
229230
}
230231

231232
if !runtime_compat.node.is_some_and(|compat| !compat) {
232-
let import = deno_doc::html::usage_to_md(ctx, doc_nodes, &url);
233233
map.insert(
234234
UsageComposerEntry {
235235
name: "npm".to_string(),
@@ -260,7 +260,6 @@ pub fn get_generate_ctx<'a, 'ctx>(
260260
}
261261

262262
if !runtime_compat.bun.is_some_and(|compat| !compat) {
263-
let import = deno_doc::html::usage_to_md(ctx, doc_nodes, &url);
264263
map.insert(
265264
UsageComposerEntry {
266265
name: "Bun".to_string(),

0 commit comments

Comments
 (0)