'Specify build directory path for sphinx output?

Is it possible to redefine where sphinx outputs the build files? I want to run a local server (for testing purposes as the documentation is later hosted anyway) and implement some webhook APIs which obviously don't work if I don't have a responding server. So I installed apache and now I want to build to C:/Apache24/htdocs directly. Can I do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source