Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add input in mdbook to rebuild #2456

Open
chorman0773 opened this issue Oct 25, 2024 · 0 comments
Open

Add input in mdbook to rebuild #2456

chorman0773 opened this issue Oct 25, 2024 · 0 comments
Labels
C-enhancement Category: Enhancement or feature request

Comments

@chorman0773
Copy link

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.

@chorman0773 chorman0773 added the C-enhancement Category: Enhancement or feature request label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Enhancement or feature request
Projects
None yet
Development

No branches or pull requests

1 participant