File tree Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Expand file tree Collapse file tree 4 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 44import os
55import re
66
7- sys .path .insert (0 , os .path .abspath ('..' ))
7+ if not 'READTHEDOCS' in os .environ :
8+ sys .path .insert (0 , os .path .abspath ('..' ))
89sys .path .append (os .path .abspath ('./demo/' ))
910
1011from sphinx .locale import _
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Making changes
4444
4545Changes to the theme can be compiled and tested with the default Grunt task:
4646
47- .. code ::
47+ .. code :: console
4848
4949 grunt
5050
Original file line number Diff line number Diff line change @@ -27,3 +27,15 @@ In your ``conf.py`` file:
2727 strings in your translated output. If these strings are not translated in
2828 your output, either we lack the localized strings for your locale, or you
2929 are using an old version of the theme.
30+
31+ Via Git or Download
32+ ===================
33+
34+ Symlink or subtree the ``sphinx_rtd_theme/sphinx_rtd_theme `` repository into your documentation at
35+ ``docs/_themes/sphinx_rtd_theme `` then add the following two settings to your Sphinx
36+ ``conf.py `` file:
37+
38+ .. code :: python
39+
40+ html_theme = " sphinx_rtd_theme"
41+ html_theme_path = [" _themes" , ]
Original file line number Diff line number Diff line change 3535 ]
3636 },
3737 install_requires = [
38- 'sphinx'
38+ 'sphinx<2.0 '
3939 ],
4040 extras_require = {
4141 'dev' : [
You can’t perform that action at this time.
0 commit comments