Removes unused pages and regenerates documentation.