You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A custom CSS is used to improve the Sphinx layout during HTML preview. To enable this CSS the Sphinx tag preview is defined in Esbonio workspace settings. The old setting was "esbonio.sphinx.tags": ["preview"], which I transformed into "esbonio.sphinx.buildCommand": ["-t preview"].
Actual behavior
When I use the new setting "esbonio.sphinx.buildCommand": ["-t abc"], Esbonio produces a runtime error. Note that I replaced preview with abc to make sure the problem is not caused by enabling the CSS stylesheet.
esbonio.sphinx.buildCommand should be set to whatever sphinx-build command you would run if you were to build your docs outside of esbonio e.g. ["sphinx-build", "-M", "html", "<src>", "<dest>", "-t", "preview"]
(Ideally, the server should be doing more here to help you get to the right value - #781)
Ah, thanks, I was not sure how to define the buildCommand and could not find an example either. I adjusted the definition and now it's working fine!
Normally we are running sphinx-build -M html docs docs/_build -W --keep-going $@. Do you advise to include the options -W --keep-going to esbonio.sphinx.buildCommand ?
Do you advise to include the options -W --keep-going to esbonio.sphinx.buildCommand ?
If that's the way you normally build your docs it's definitely worth trying so that you get consistent behavior both with and without esbonio. The server now uses Sphinx's cli parser so in theory should be able to support (almost*) all valid sphinx-build arguments.
* The only exceptions are those that don't make sense in the language server context - such as --color or -P (starting pdb on exceptions)
Expected behavior
A custom CSS is used to improve the Sphinx layout during HTML preview. To enable this CSS the Sphinx tag
preview
is defined in Esbonio workspace settings. The old setting was"esbonio.sphinx.tags": ["preview"]
, which I transformed into"esbonio.sphinx.buildCommand": ["-t preview"]
.Actual behavior
When I use the new setting
"esbonio.sphinx.buildCommand": ["-t abc"]
, Esbonio produces a runtime error. Note that I replacedpreview
withabc
to make sure the problem is not caused by enabling the CSS stylesheet.Is our
buildCommand
definition correct?Log output
(Optional) Settings from conf.py
No response
The text was updated successfully, but these errors were encountered: