-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Feature request: watching updates docs #128
Comments
Here's the current set of doc related jobs: [jobs.doc]
command = ["cargo", "doc", "--color", "always", "--no-deps"]
need_stdout = false
# if the doc compiles, then it opens in your browser and bacon switches
# to the previous job
[jobs.doc-open]
command = ["cargo", "doc", "--color", "always", "--no-deps", "--open"]
need_stdout = false
on_success = "back" # so that we don't open the browser at each change The last line prevents bacon from opening a new browser window or tab at each change. I just had an idea, changing this last line to on_success = "job:doc" This way the doc is updated (you still have to refresh in the browser). There's a problem which prevents me from making that the new standard: hitting back would go back to the doc-open job instead of the previous one. I could fix that with a new action for the |
Great tool btw.
But I was using the
doc-open
command (by pressing D) to build and open the documents (presumably usingcargo doc --open
) and noticed that when source files are changed the docs are not rebuilt.This feature to trigger a rebuild and to refresh the browser window (if possible) would be really useful when dealing with documentation comments. For example, you can hit
D
on bacon, add comments throughout your source code, and refresh or view in the browser the changes immediately.The text was updated successfully, but these errors were encountered: