diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-03-20 08:53:40 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-03-20 08:53:40 +0800 |
| commit | 552b7c26e9f151817328f0bb6461e96f6829c9f3 (patch) | |
| tree | 95e01e8713b523a4983f4dd804f78eb54573416b /macros/helpdoc_system_macros | |
| parent | e1f7bda5ab0c260c03d8789ed370d3adc89d5972 (diff) | |
Add windows path support in helpdoc_system_macros
Diffstat (limited to 'macros/helpdoc_system_macros')
| -rw-r--r-- | macros/helpdoc_system_macros/Cargo.toml | 1 | ||||
| -rw-r--r-- | macros/helpdoc_system_macros/src/lib.rs | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/macros/helpdoc_system_macros/Cargo.toml b/macros/helpdoc_system_macros/Cargo.toml index c5c8483..39a58cf 100644 --- a/macros/helpdoc_system_macros/Cargo.toml +++ b/macros/helpdoc_system_macros/Cargo.toml @@ -7,6 +7,7 @@ version.workspace = true proc-macro = true [dependencies] +just_fmt.workspace = true proc-macro2.workspace = true quote.workspace = true syn.workspace = true diff --git a/macros/helpdoc_system_macros/src/lib.rs b/macros/helpdoc_system_macros/src/lib.rs index a9008bf..ce85f87 100644 --- a/macros/helpdoc_system_macros/src/lib.rs +++ b/macros/helpdoc_system_macros/src/lib.rs @@ -67,6 +67,10 @@ fn scan_directory(dir: &Path, entries: &mut Vec<(String, String)>, base_dir: &Pa doc_name.to_string() }; + let full_doc_name = just_fmt::fmt_path::fmt_path(full_doc_name) + .unwrap() + .to_string_lossy() + .to_string(); entries.push((full_doc_name, lang.to_string())); } } |
