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
This is specifically focused on the new test support in mdbook-spec, but in general, mdbook serve does not check for files outside of the watch tree (src/ dir + include entries), and there's no way to force it to rebuild without SIGINTing and rerunning the command. In the case of mdbook-spec, this means that it doesn't watch the thousands (10,000s) of test files for updates.
Proposed Solution
A terminal keystroke, such as ^R (Control+R), could be checked for while listening to changes, and when read from stdin, rebuild the book and trigger a rebuild.
Notes
An alternative on unix specifically is to listen to a particular signal. However, neither of the two signals designed for an arbitrary purpose are triggered by a keystroke.
The text was updated successfully, but these errors were encountered:
Problem
This is specifically focused on the new test support in mdbook-spec, but in general,
mdbook serve
does not check for files outside of the watch tree (src/
dir +include
entries), and there's no way to force it to rebuild without SIGINTing and rerunning the command. In the case of mdbook-spec, this means that it doesn't watch the thousands (10,000s) of test files for updates.Proposed Solution
A terminal keystroke, such as ^R (Control+R), could be checked for while listening to changes, and when read from stdin, rebuild the book and trigger a rebuild.
Notes
An alternative on unix specifically is to listen to a particular signal. However, neither of the two signals designed for an arbitrary purpose are triggered by a keystroke.
The text was updated successfully, but these errors were encountered: