Adding an extension in Sphinx (Python Documentation Generator) configuration file
<p>I want to use Sphinx as a documentation generator. When I try to run the <strong>make html</strong> command, I have the following error : </p>

<p><code>Extension error:
Could not import extension sphinxcontrib.httpdomain (exception: No module named sphinxcontrib.httpdomain)
make: *** [html] Error 1</code></p>

<p>I've found this web page explaining that I have to manually add the extension to the Sphinx configuration file <a href="https://pythonhosted.org/sphinxcontrib-httpdomain/#module-sphinxcontrib.httpdomain" rel="nofollow">https://pythonhosted.org/sphinxcontrib-httpdomain/#module-sphinxcontrib.httpdomain</a></p>

<p>But I can't find this configuration file. </p>

<p>Do you have any idea where I could find it ? I'm on Mac OS X</p>

<p>The configuration is in the <code>source</code> folder of your Sphinx project. It is named <code>conf.py</code> and contains an <code>extensions</code> option which should look like this:</p>

<pre><code># Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.intersphinx',
    'sphinx.ext.todo',
    ...
]
</code></pre>

python osx python-sphinx