regenerate HTML and TXT