Skip to content

Commit f539c0e

Browse files
committed
Added setuptools entry point for Sphinx
This allows using `sphinx_rtd_theme` as Sphinx `html_theme` directly.
1 parent 71b90d0 commit f539c0e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ In your ``conf.py`` file:
4848
4949
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
5050
51+
or (since master):
52+
53+
.. code:: python
54+
55+
html_theme = "sphinx_rtd_theme"
56+
5157
Via git or download
5258
-------------------
5359

@@ -113,6 +119,8 @@ master
113119
* Add language to the JS output variable
114120
* Include the lato italics font with the theme
115121
* Fix padding on field lists
122+
* Add setuptools entry point allowing to use ``sphinx_rtd_theme`` as
123+
Sphinx ``html_theme`` directly.
116124

117125
v0.2.4
118126
------

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
'static/font/*.*'
2828
]},
2929
include_package_data=True,
30+
entry_points = {
31+
'sphinx.html_themes': [
32+
'sphinx_rtd_theme = sphinx_rtd_theme',
33+
]
34+
},
3035
classifiers=[
3136
'Development Status :: 5 - Production/Stable',
3237
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)