tinymist_query/docs/
mod.rs1mod convert;
4mod def;
5mod module;
6mod package;
7
8use tinymist_std::path::unix_slash;
9use typst::syntax::FileId;
10
11pub(crate) use convert::convert_docs;
12pub(crate) use def::*;
13pub use module::*;
14pub use package::*;
15pub use tinymist_analysis::docs::*;
16
17fn file_id_repr(fid: FileId) -> String {
18 if let Some(spec) = fid.package() {
19 format!("{spec}{}", unix_slash(fid.vpath().as_rooted_path()))
20 } else {
21 unix_slash(fid.vpath().as_rooted_path())
22 }
23}