apidoc build failed in Mac OS because of sed in-place command. It is a minor change that fixed this issue. More information here Fixes: #3247 Fixes: #3312