[V6] Resourcified documents

rebased #539.