File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -280,25 +280,6 @@ When you're done with your edits, you can run ``grunt build`` to clean out the o
280280files and rebuild a new distribution, compressing the css and cleaning out
281281extraneous 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
303284TODO
304285====
You can’t perform that action at this time.
0 commit comments