Further refactor of prettification of docs.