Skip to content

Use a time window to detect changes in batches #124

@choldgraf

Description

@choldgraf

Currently a re-build is triggered the moment that a file in a watched folder is updated. However, sometimes you want to make a few updates in quick succession. Currently, this will cause the re-build to trigger immediately after the first re-build completes. It would be nice if a user could configure a window where changes would be batched together in a single reload event.

Looking at the livereload-python docs, something like this seems to be possible with a delay parameter.

This package is just directly using the Server class so maybe we could make that configurable:

https://github.com/executablebooks/sphinx-autobuild/blob/ea4d04f4f68f564e65ac21843d4839ce24a6e0ae/src/sphinx_autobuild/cli.py#L175

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions