I'd rewrite this as "To regenrate the HTML pages automatically when you make changes to the Markdown source files, …".