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:
Daniel Rainer
2026-01-19 17:46:58 +01:00
committed by Johannes Altmanninger
parent 07394a1621
commit f407ca18a4

View File

@@ -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