Cleaning up bad search and replace so docs generate correctly. See #3374