why not just `make doc` which takes care of these?

From ```Makefile```:
```
doc:
        -rm -rf doc/build
        -rm -rf doc/source/generated
        cd doc; \
        python make.py clean; \
        python make.py html
```