From f539c0e1f2001558ee29ea117585c1d864aa9cf7 Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Tue, 30 May 2017 13:41:29 +0300 Subject: [PATCH] Added setuptools entry point for Sphinx This allows using `sphinx_rtd_theme` as Sphinx `html_theme` directly. --- README.rst | 8 ++++++++ setup.py | 5 +++++ 2 files changed, 13 insertions(+) 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',