fix docs-build.sh bug in rst checks