mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-03 11:51:15 -03:00
Building man pages takes significant time due to Sphinx running for several seconds, even when no updates are required. Previously, we added custom logic to avoid calling `sphinx-build` if the inputs to `sphinx-build` had not changed since a cached timestamp. By moving this into its own crate, we can tell cargo to rebuild when the input files changed and unrelated changes will have no effect on this crate. This allows us to get rid of the custom code for tracking whether to recompile, while keeping the effect of only calling `sphinx-build` when appropriate. In order to avoid code duplication, a new `build-helper` crate is added, which contains some functionality for use in `build.rs`. Closes #11737