mirror of
https://github.com/typst/typst
synced 2025-05-15 01:25:28 +08:00
Fix typst-docs
This commit is contained in:
parent
9c4b0eadb0
commit
a26c368088
3
Cargo.lock
generated
3
Cargo.lock
generated
@ -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",
|
||||
|
@ -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"
|
||||
|
@ -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 }
|
||||
|
@ -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())
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user