Fix API doc links in pyqgis cookbook

See https://github.com/qgis/QGIS-Website/issues/127