[V4] Resourcified documents

rebased #462.