File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff 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
115123v0.2.4
116124------
Original file line number Diff line number Diff line change 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' ,
You can’t perform that action at this time.
0 commit comments