fix handling of paths in api documentation