So, if you ask the question: βHow can I create documentation outside the source treeβ, the documentation helps:
sphinx-build -b html sourcedir builddir
Just point builddir to a location outside the source tree.
Or, depending on your version control system, add the directory in which you create your documentation to the ignore file (e.g. .gitignore , .hgignore , ...)
Thomas fenzl
source share