From 55818b74196c8814ce0ee753cf0fcaad31469856 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sun, 23 Apr 2017 16:03:46 +0900 Subject: [PATCH] Update docs --- doc/theming.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/theming.rst b/doc/theming.rst index 1236a85bf..2a7063925 100644 --- a/doc/theming.rst +++ b/doc/theming.rst @@ -300,7 +300,7 @@ brings to users easy setting up ways. To distribute your theme as a python package, please define an entry point called ``sphinx.html_themes`` in your setup.py file, and write a ``setup()`` -function to register your themes in it:: +function to register your themes using ``add_html_theme()`` API in it:: # 'setup.py' setup( @@ -319,6 +319,10 @@ function to register your themes in it:: def setup(app): app.add_html_theme('name_of_theme', path.abspath(path.dirname(__file__))) + +If your theme package contains two or more themes, please call ``add_html_theme()`` +twice or more. + .. versionadded:: 1.2 'sphinx_themes' entry_points feature.