Some minor cleanup before creation of a static HTML version.