Fixing single-page doc generation