Added setuptools entry point for Sphinx

This allows using `sphinx_rtd_theme` as Sphinx `html_theme` directly.
This commit is contained in:
Segev Finer
2017-05-30 13:41:29 +03:00
parent 71b90d076d
commit f539c0e1f2
2 changed files with 13 additions and 0 deletions

View File

@@ -48,6 +48,12 @@ In your ``conf.py`` file:
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
or (since master):
.. code:: python
html_theme = "sphinx_rtd_theme"
Via git or download
-------------------
@@ -113,6 +119,8 @@ master
* Add language to the JS output variable
* Include the lato italics font with the theme
* Fix padding on field lists
* Add setuptools entry point allowing to use ``sphinx_rtd_theme`` as
Sphinx ``html_theme`` directly.
v0.2.4
------

View File

@@ -27,6 +27,11 @@ setup(
'static/font/*.*'
]},
include_package_data=True,
entry_points = {
'sphinx.html_themes': [
'sphinx_rtd_theme = sphinx_rtd_theme',
]
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'License :: OSI Approved :: MIT License',