[DOC] Building documentation locally

As mentioned in [DOC] Fix RST syntax by ruslo · Pull Request #18732 · apache/tvm · GitHub I was not able to build the documentation locally on my Ubuntu 24.04

Trying instructions from tvm/docs at 9eac0e1635c83904aedd1100c9471c608d89a7ad · apache/tvm · GitHub

First, Docker-based leads to an error:

$ USE_SCCACHE=0 DEBUG=1 python tests/scripts/ci.py docs --cpu

+ python3 -m pip install Sphinx==4.2.0 tlcpack-sphinx-addon==0.2.1 image==1.5.33 git+https://github.com/sphinx-gallery/sphinx-gallery.git@6142f1791151849b5bec4bf3959f75697ba226cd sphinx-rtd-theme==1.0.0 matplotlib==3.3.4 commonmark==0.9.1 Pillow==8.3.2 autodocsumm==0.2.7 docutils==0.16

ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'WHEEL'
Check the permissions.

Second, native, leads to an error:

$ ./docker/bash.sh ci_gpu -c 'python3 -m pip install --quiet tlcpack-sphinx-addon==0.2.1 && python3 -m pip freeze'

Error: Unknown flag: -c

I found a few issues in the documentation and just want to check the fixes before opening a pull request. So any instructions that allow me to do that will do the trick. Hints are welcome :folded_hands: