Skip to content

Commit dc9d3d7

Browse files
authored
Readme: remove outdated text about building on rtd
1 parent e7e082a commit dc9d3d7

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

README.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -280,25 +280,6 @@ When you're done with your edits, you can run ``grunt build`` to clean out the o
280280
files and rebuild a new distribution, compressing the css and cleaning out
281281
extraneous files. Please do this before you send in a PR.
282282

283-
Using this theme locally, then building on Read the Docs?
284-
==========================================================
285-
286-
Currently if you import sphinx_rtd_theme in your local sphinx build, then pass
287-
that same config to Read the Docs, it will fail, since RTD gets confused. If
288-
you want to run this theme locally and then also have it build on RTD, then
289-
you can add something like this to your config. Thanks to Daniel Oaks for this.
290-
291-
.. code:: python
292-
293-
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
294-
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
295-
296-
if not on_rtd: # only import and set the theme if we're building docs locally
297-
import sphinx_rtd_theme
298-
html_theme = 'sphinx_rtd_theme'
299-
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
300-
301-
# otherwise, readthedocs.org uses their theme by default, so no need to specify it
302283

303284
TODO
304285
====

0 commit comments

Comments
 (0)