doc builder: s/finish/flush/