Skip to content

Commit 781de96

Browse files
author
Omer Katz
authored
Merge pull request #10 from celery/sphinx2
Make this theme Sphinx 2.0 compatible
2 parents c922ba4 + cbacd52 commit 781de96

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

requirements/default.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Sphinx>=1.7.1
1+
Sphinx>=2.0.0

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,8 +125,8 @@ def reqs(*f):
125125
test_suite='nose.collector',
126126
classifiers=classifiers,
127127
entry_points={
128-
'sphinx_themes': [
129-
'path = sphinx_celery:get_html_theme_path',
128+
'sphinx.html_themes': [
129+
'sphinx_celery = sphinx_celery',
130130
],
131131
},
132132
long_description=long_description,

sphinx_celery/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# -eof meta-
1616

17-
__all__ = ['get_html_templates_path', 'get_html_theme_path']
17+
__all__ = ['get_html_templates_path', 'get_html_theme_path', 'setup']
1818

1919
version_info_t = namedtuple('version_info_t', (
2020
'major', 'minor', 'micro', 'releaselevel', 'serial',
@@ -39,3 +39,7 @@ def get_html_templates_path():
3939
os.path.abspath(os.path.dirname((__file__))),
4040
'templates',
4141
)
42+
43+
44+
def setup(app):
45+
app.add_html_theme('sphinx_celery', os.path.abspath(os.path.dirname(__file__)))

0 commit comments

Comments
 (0)