[V5] Resourcified documents

rebased #522.