These are the steps I took to compile NuttX Documentation:
$ sudo apt install python3-sphinx
$ pip install sphinx_rtd_theme --break-system-packages
$ pip install myst-parser --break-system-packages
$ pip install sphinx_tabs --break-system-packages
$ pip install sphinx_copybutton --break-system-packages
$ cd Documentation/
$ make html