how to tell sphinx that source code is in this path and build in that path
<p>I want to run sphinx on a library in a conda virtual environment with path</p>

<pre><code>/anaconda/envs/test_env/lib/site-packages/mypackage
</code></pre>

<p>and put the html files in the path</p>

<pre><code>/myhtmlfiles/myproject
</code></pre>

<p>where my <code>conf.py</code> and <code>*.rst</code> files are in the path</p>

<pre><code>/sphinx/myproject
</code></pre>

<hr>

<p><strong><em>question</em></strong><br>
What are the <code>conf.py</code> settings I need to edit to make this happen when I run</p>

<pre><code>make html
</code></pre>

<p><code>make</code> is not a sphinx command. That command actually runs either a <code>make</code> with a Makefile or <code>make.bat</code> (depending on your operating system), which then locates the relevant files before invoking <code>sphinx-build</code>. You will need to modify the make files and/or set the proper environmental variables.</p>

python python-sphinx