#1775 Fix teachings documents generation