mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-01 04:41:14 -03:00
docs: fix doc dir computation
`FISH_CMAKE_BINARY_DIR` is the top-level CMake output directory, not its subdirectory used as the target directory by Cargo. So far, this has not caused issues because CMake builds explicitly call `sphinx-build` to build the man pages, instead of using the Rust crate for embedding them. Closes #12354
This commit is contained in:
committed by
Johannes Altmanninger
parent
07394a1621
commit
f407ca18a4
@@ -35,7 +35,7 @@ pub fn fish_build_dir() -> Cow<'static, Path> {
|
||||
}
|
||||
|
||||
pub fn fish_doc_dir() -> Cow<'static, Path> {
|
||||
fish_build_dir().join("fish-docs").into()
|
||||
cargo_target_dir().join("fish-docs").into()
|
||||
}
|
||||
|
||||
// TODO Move this to rsconf
|
||||
|
||||
Reference in New Issue
Block a user