Skip to content

Commit 6f86eec

Browse files
committed
Wrap to 80 characters
1 parent 484377b commit 6f86eec

File tree

1 file changed

+38
-13
lines changed

1 file changed

+38
-13
lines changed

docs/faq.rst

+38-13
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ Frequently Asked Questions
44
My project isn't building with autodoc
55
--------------------------------------
66

7-
First, you should check out the Builds tab of your project. That records all of the build attempts that RTD has made to build your project. If you see ``ImportError`` messages for custom Python modules, you should enable the virtualenv feature in the Admin page of your project, which will install your project into a virtualenv, and allow you to specify a ``requirements.txt`` file for your project.
7+
First, you should check out the Builds tab of your project. That records all of
8+
the build attempts that RTD has made to build your project. If you see
9+
``ImportError`` messages for custom Python modules, you should enable the
10+
virtualenv feature in the Admin page of your project, which will install your
11+
project into a virtualenv, and allow you to specify a ``requirements.txt`` file
12+
for your project.
813

9-
If you are still seeing errors because of C library dependencies, please see the below section about that.
14+
If you are still seeing errors because of C library dependencies, please see
15+
the below section about that.
1016

1117
How do I change my slug (the URL your docs are served at)?
1218
----------------------------------------------------------
@@ -57,14 +63,18 @@ environment, and will be set to ``True`` when building on RTD::
5763
{% endif %}
5864

5965
I get import errors on libraries that depend on C modules
60-
----------------------------------------------------------
66+
---------------------------------------------------------
6167

6268
.. note::
6369
Another use case for this is when you have a module with a C extension.
6470

65-
This happens because our build system doesn't have the dependencies for building your project. This happens with things like libevent and mysql, and other python things that depend on C libraries. We can't support installing random C binaries on our system, so there is another way to fix these imports.
71+
This happens because our build system doesn't have the dependencies for
72+
building your project. This happens with things like libevent and mysql, and
73+
other python things that depend on C libraries. We can't support installing
74+
random C binaries on our system, so there is another way to fix these imports.
6675

67-
You can mock out the imports for these modules in your ``conf.py`` with the following snippet::
76+
You can mock out the imports for these modules in your ``conf.py`` with the
77+
following snippet::
6878

6979
import sys
7080
from unittest.mock import MagicMock
@@ -79,12 +89,15 @@ You can mock out the imports for these modules in your ``conf.py`` with the foll
7989

8090
Of course, replacing `MOCK_MODULES` with the modules that you want to mock out.
8191

82-
.. Tip:: The library ``unittest.mock`` was introduced on python 3.3. On earlier versions install the ``mock`` library
83-
from PyPI with (ie ``pip install mock``) and replace the above import::
92+
.. Tip:: The library ``unittest.mock`` was introduced on python 3.3. On earlier
93+
versions install the ``mock`` library from PyPI with (ie ``pip install
94+
mock``) and replace the above import::
8495

8596
from mock import Mock as MagicMock
8697

87-
If such libraries are installed via ``setup.py``, you also will need to remove all the C-dependent libraries from your ``install_requires`` in the RTD environment.
98+
If such libraries are installed via ``setup.py``, you also will need to remove
99+
all the C-dependent libraries from your ``install_requires`` in the RTD
100+
environment.
88101

89102
`Client Error 401` when building documentation
90103
----------------------------------------------
@@ -133,12 +146,19 @@ You can add subprojects in the Admin section for your project.
133146
Where do I need to put my docs for RTD to find it?
134147
--------------------------------------------------
135148

136-
Read the Docs will crawl your project looking for a ``conf.py``. Where it finds the ``conf.py``, it will run ``sphinx-build`` in that directory. So as long as you only have one set of sphinx documentation in your project, it should Just Work.
149+
Read the Docs will crawl your project looking for a ``conf.py``. Where it finds
150+
the ``conf.py``, it will run ``sphinx-build`` in that directory. So as long as
151+
you only have one set of sphinx documentation in your project, it should Just
152+
Work.
137153

138154
I want to use the Blue/Default Sphinx theme
139155
-------------------------------------------
140156

141-
We think that our theme is badass, and better than the default for many reasons. Some people don't like change though :), so there is a hack that will let you keep using the default theme. If you set the ``html_style`` variable in your ``conf.py``, it should default to using the default theme. The value of this doesn't matter, and can be set to ``/default.css`` for default behavior.
157+
We think that our theme is badass, and better than the default for many
158+
reasons. Some people don't like change though :), so there is a hack that will
159+
let you keep using the default theme. If you set the ``html_style`` variable in
160+
your ``conf.py``, it should default to using the default theme. The value of
161+
this doesn't matter, and can be set to ``/default.css`` for default behavior.
142162

143163
I want to use the Read the Docs theme locally
144164
---------------------------------------------
@@ -149,12 +169,15 @@ Simply follow the instructions in the README.
149169
Image scaling doesn't work in my documentation
150170
-----------------------------------------------
151171

152-
Image scaling in docutils depends on PIL. PIL is installed in the system that RTD runs on. However, if you are using the virtualenv building option, you will likely need to include PIL in your requirements for your project.
172+
Image scaling in docutils depends on PIL. PIL is installed in the system that
173+
RTD runs on. However, if you are using the virtualenv building option, you will
174+
likely need to include PIL in your requirements for your project.
153175

154176
I want comments in my docs
155177
--------------------------
156178

157-
RTD doesn't have explicit support for this. That said, a tool like `Disqus`_ (and the `sphinxcontrib-disqus`_ plugin) can be used for this purpose on RTD.
179+
RTD doesn't have explicit support for this. That said, a tool like `Disqus`_
180+
(and the `sphinxcontrib-disqus`_ plugin) can be used for this purpose on RTD.
158181

159182
.. _Disqus: http://disqus.com/
160183
.. _sphinxcontrib-disqus: https://pypi.python.org/pypi/sphinxcontrib-disqus
@@ -219,4 +242,6 @@ file* field.
219242
What commit of Read the Docs is in production?
220243
----------------------------------------------
221244

222-
We deploy readthedocs.org from the `rel` branch in our GitHub repository. You can see the latest commits that have been deployed by looking on GitHub: https://github.com/rtfd/readthedocs.org/commits/rel
245+
We deploy readthedocs.org from the `rel` branch in our GitHub repository. You
246+
can see the latest commits that have been deployed by looking on GitHub:
247+
https://github.com/rtfd/readthedocs.org/commits/rel

0 commit comments

Comments
 (0)