Skip to content

Commit b3225c5

Browse files
authored
Merge pull request #425 from segevfiner/setuptools-entry-points
Added setuptools entry point for Sphinx
2 parents 1dc21db + 31d410f commit b3225c5

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ In your ``conf.py`` file:
4646
html_theme = "sphinx_rtd_theme"
4747
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
4848
49+
or (since v0.2.5):
50+
51+
.. code:: python
52+
53+
html_theme = "sphinx_rtd_theme"
54+
4955
Via git or download
5056
-------------------
5157

@@ -111,6 +117,8 @@ master
111117
* Add language to the JS output variable
112118
* Include the lato italics font with the theme
113119
* Fix padding on field lists
120+
* Add setuptools entry point allowing to use ``sphinx_rtd_theme`` as
121+
Sphinx ``html_theme`` directly.
114122

115123
v0.2.4
116124
------

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@
2727
'static/font/*.*'
2828
]},
2929
include_package_data=True,
30+
# See http://www.sphinx-doc.org/en/stable/theming.html#distribute-your-theme-as-a-python-package
31+
entry_points = {
32+
'sphinx.html_themes': [
33+
'sphinx_rtd_theme = sphinx_rtd_theme',
34+
]
35+
},
3036
classifiers=[
3137
'Development Status :: 5 - Production/Stable',
3238
'License :: OSI Approved :: MIT License',

0 commit comments

Comments
 (0)