Apply doc context to all pages