mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 20:21:16 -03:00
This task is a bit annoying to implement because `sphinx-build` depends on `fish_indent`, so that needs to be built, and the binary location added to `PATH`. Building `fish_indent` can be avoided by setting the `--fish-indent` argument to the path to an existing `fish_indent` executable. Use the new xtask in CMake builds. To do so without having to add configuration options about where to put the docs, or having to copy them from the default location to `build/user_doc`, we instead get rid of the `user_doc` directory and change the code which accesses the docs to read them from the non-configurable default output location in Cargo's target directory. Part of #12292
19 lines
895 B
Fish
19 lines
895 B
Fish
# RUN: %fish -d config | grep -v ^Debug.enabled.for.category
|
|
# REQUIRES: %fish -d config -c '' 2>| grep 'Running out of build directory'
|
|
|
|
# CHECKERR: config: executable path: {{.*}}/fish
|
|
# CHECKERR: config: Running out of build directory, using paths relative to $CARGO_MANIFEST_DIR ({{.*}})
|
|
|
|
# NOTE: When our executable is located outside the workspace, this is "/etc".
|
|
# CHECKERR: config: paths.sysconf: {{.+}}/etc
|
|
|
|
# CHECKERR: config: paths.bin: {{.*}}
|
|
|
|
# NOTE: When our executable is located outside the build directory, these are different.
|
|
# CHECKERR: config: paths.data: {{.*}}/share
|
|
# CHECKERR: config: paths.man: {{.*/cargo/fish-docs/man|\|not found\|}}
|
|
# CHECKERR: config: paths.doc: {{.*/cargo/fish-docs/html|\|not found\|}}
|
|
|
|
# CHECKERR: config: sourcing {{.+}}/etc/config.fish
|
|
# CHECKERR: config: not sourcing {{.*}}/xdg_config_home/fish/config.fish (not readable or does not exist)
|