Skip to content

Commit d216dcf

Browse files
committed
Fix local path insertion of package, fix more docs
Add back git installation docs, we'll discuss this separately.
1 parent f7a7cd7 commit d216dcf

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
import os
55
import 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('..'))
89
sys.path.append(os.path.abspath('./demo/'))
910

1011
from sphinx.locale import _

docs/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Making changes
4444

4545
Changes to the theme can be compiled and tested with the default Grunt task:
4646

47-
.. code::
47+
.. code:: console
4848
4949
grunt
5050

docs/installing.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff 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", ]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
]
3636
},
3737
install_requires=[
38-
'sphinx'
38+
'sphinx<2.0'
3939
],
4040
extras_require={
4141
'dev': [

0 commit comments

Comments
 (0)