diff --git a/README.rst b/README.rst index d45d0af..28da14e 100644 --- a/README.rst +++ b/README.rst @@ -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 ------ diff --git a/setup.py b/setup.py index e6c0a69..76b8166 100644 --- a/setup.py +++ b/setup.py @@ -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',