docs: Remove leading "sphinx-build" from buildArguments setting#1111
Conversation
As the name suggest buildArguments are arguments to the sphinx-build command. Strip a leading "sphinx-build" to reflect this. Background: buildArguments was previously named buildCommand but was renamed in commit cd0d7c9 to reflect its usage as arguments to sphinx-build. buildCommand was kept as an alias. Currently, esbonio supports Esbonio currently supports buildArguments with and without leading "sphinx-build". Note that internally the arguments are not passed to the (external) command "sphinx-build" but to the Sphinx API.
|
Thank you! I agree, now that we have
No they should be separate... though it's probably another poor naming choice on my part! 😅 The Unit tests for specific feature implementations, say converting rst directives to completion items live in |
Ok, thanks for explaining and merging! |
cd0d7c9 introduced the setting
buildArguments(part of #1067). Thus,became
Note however, that the values of this setting are not arguments but a command.
To me the following would be more correct:
Note the missing program
sphinx-buildin the first position, i.e. all the values are arguments.Luckily, Esbonio already treats it that way:
esbonio/lib/esbonio/esbonio/sphinx_agent/config.py
Lines 79 to 96 in 7d14993
(at least I believe that is the location where the option is used and a potential leading
sphinx-buildis stripped)The test suite also seems to cover this use case:
esbonio/lib/esbonio/tests/server/features/test_sphinx_config.py
Lines 449 to 471 in 7d14993
and
https://github.com/swyddfa/esbonio/blob/7d14993a594204371c0c66f90f44ab17f1639c04/lib/esbonio/tests/sphinx-agent/test_sa_unit.py
This pull request, updates the documentation, to reflect that
buildArgumentsare only arguments andbuildCommandis the full command (not changed in this PR).Sidenote:
I noticed there are these two folders:
lib/esbonio/tests/server/featurelib/esbonio/tests/server/featuresshould these be the same?