Skip to content

Commit 3ba8cc9

Browse files
authored
chore: update deno_doc (#483)
1 parent 5d5d5cf commit 3ba8cc9

File tree

11 files changed

+152
-197
lines changed

11 files changed

+152
-197
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ thiserror = "1"
8080
async-tar = "0.4.2"
8181
deno_graph = "0.74.1"
8282
deno_ast = { version = "0.38.1", features = ["view"] }
83-
deno_doc = { version = "0.128.0", features = ["tree-sitter"] }
83+
deno_doc = { version = "0.131.0", features = ["tree-sitter"] }
8484
comrak = { version = "0.20.0", default-features = false }
8585
async-trait = "0.1.73"
8686
jsonwebkey = { version = "0.3.5", features = ["jsonwebtoken", "jwt-convert"] }

api/src/api/package.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ pub async fn get_docs_handler(
10171017
css: Cow::Borrowed(deno_doc::html::STYLESHEET),
10181018
script: Cow::Borrowed(deno_doc::html::SCRIPT_JS),
10191019
breadcrumbs: docs.breadcrumbs,
1020-
sidepanel: docs.sidepanel,
1020+
toc: docs.toc,
10211021
main: docs.main,
10221022
version: ApiPackageVersion::from(version),
10231023
}),
@@ -2411,13 +2411,13 @@ ggHohNAjhbzDaY2iBW/m3NC5dehGUP4T2GBo/cwGhg==
24112411
css,
24122412
script: _,
24132413
breadcrumbs,
2414-
sidepanel,
2414+
toc,
24152415
main: _,
24162416
} => {
24172417
assert_eq!(version.version, task.package_version);
24182418
assert!(css.contains("{max-width:"), "{}", css);
24192419
assert!(breadcrumbs.is_none(), "{:?}", breadcrumbs);
2420-
assert!(sidepanel.is_some(), "{:?}", sidepanel)
2420+
assert!(toc.is_some(), "{:?}", toc)
24212421
}
24222422
ApiPackageVersionDocs::Redirect { .. } => panic!(),
24232423
}
@@ -2436,7 +2436,7 @@ ggHohNAjhbzDaY2iBW/m3NC5dehGUP4T2GBo/cwGhg==
24362436
css,
24372437
script: _,
24382438
breadcrumbs,
2439-
sidepanel,
2439+
toc,
24402440
main: _,
24412441
} => {
24422442
assert_eq!(version.version, task.package_version);
@@ -2446,7 +2446,7 @@ ggHohNAjhbzDaY2iBW/m3NC5dehGUP4T2GBo/cwGhg==
24462446
"{:?}",
24472447
breadcrumbs
24482448
);
2449-
assert!(sidepanel.is_none(), "{:?}", sidepanel);
2449+
assert!(toc.is_none(), "{:?}", toc);
24502450
}
24512451
ApiPackageVersionDocs::Redirect { .. } => panic!(),
24522452
}
@@ -2465,7 +2465,7 @@ ggHohNAjhbzDaY2iBW/m3NC5dehGUP4T2GBo/cwGhg==
24652465
css,
24662466
script: _,
24672467
breadcrumbs,
2468-
sidepanel,
2468+
toc,
24692469
main: _,
24702470
} => {
24712471
assert_eq!(version.version, task.package_version);
@@ -2475,7 +2475,7 @@ ggHohNAjhbzDaY2iBW/m3NC5dehGUP4T2GBo/cwGhg==
24752475
"{:?}",
24762476
breadcrumbs
24772477
);
2478-
assert!(sidepanel.is_some(), "{:?}", sidepanel);
2478+
assert!(toc.is_some(), "{:?}", toc);
24792479
}
24802480
ApiPackageVersionDocs::Redirect { .. } => panic!(),
24812481
}

api/src/api/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ pub enum ApiPackageVersionDocs {
587587
css: Cow<'static, str>,
588588
script: Cow<'static, str>,
589589
breadcrumbs: Option<String>,
590-
sidepanel: Option<String>,
590+
toc: Option<String>,
591591
main: String,
592592
},
593593
Redirect {

0 commit comments

Comments
 (0)