diff --git a/Cargo.lock b/Cargo.lock index ed4cac94c..b99c9006c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -413,7 +413,7 @@ dependencies = [ [[package]] name = "codex" version = "0.1.0" -source = "git+https://github.com/typst/codex?rev=b99817a19c6249607a27010dfc86c8a90d43d494#b99817a19c6249607a27010dfc86c8a90d43d494" +source = "git+https://github.com/typst/codex?rev=17d2dff8d13ae526c6429810d602f466a2bb4424#17d2dff8d13ae526c6429810d602f466a2bb4424" [[package]] name = "color-print" @@ -2913,6 +2913,7 @@ name = "typst-docs" version = "0.13.1" dependencies = [ "clap", + "codex", "ecow", "heck", "pulldown-cmark", diff --git a/Cargo.toml b/Cargo.toml index 078ee4ced..b482addae 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ clap_mangen = "0.2.10" codespan-reporting = "0.11" # TODO: change this when codex#46 gets merged and codex gets released with that # codex = "0.1.1" -codex = { git = "https://github.com/typst/codex", rev = "b99817a19c6249607a27010dfc86c8a90d43d494" } +codex = { git = "https://github.com/typst/codex", rev = "17d2dff8d13ae526c6429810d602f466a2bb4424" } color-print = "0.3.6" comemo = "0.4" csv = "1" diff --git a/docs/Cargo.toml b/docs/Cargo.toml index acc551754..64e261289 100644 --- a/docs/Cargo.toml +++ b/docs/Cargo.toml @@ -22,6 +22,7 @@ typst-utils = { workspace = true } typst-assets = { workspace = true, features = ["fonts"] } typst-dev-assets = { workspace = true } clap = { workspace = true, optional = true } +codex = { workspace = true } ecow = { workspace = true } heck = { workspace = true } pulldown-cmark = { workspace = true } diff --git a/docs/src/lib.rs b/docs/src/lib.rs index 091bb1b24..28cd37d2b 100644 --- a/docs/src/lib.rs +++ b/docs/src/lib.rs @@ -712,11 +712,11 @@ fn symbols_model(resolver: &dyn Resolver, group: &GroupData) -> SymbolsModel { let mut list = vec![]; for (name, binding) in group.module().scope().iter() { let Value::Symbol(symbol) = binding.read() else { continue }; - let complete = |variant: &str| { + let complete = |variant: codex::ModifierSet<&str>| { if variant.is_empty() { name.clone() } else { - eco_format!("{}.{}", name, variant) + eco_format!("{}.{}", name, variant.as_str()) } };