summaryrefslogtreecommitdiff
path: root/sphinx/application.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-21 17:17:21 +0100
committerGeorg Brandl <georg@python.org>2009-02-21 17:17:21 +0100
commit0cbd0ddc0d9e094e3f15956ed6f9e1841d1381ad (patch)
tree4ced4737260993cc56ff13422db8b365270fc3ef /sphinx/application.py
parent01bf7e7470533b166349ac98b6941ee899153609 (diff)
downloadsphinx-0cbd0ddc0d9e094e3f15956ed6f9e1841d1381ad.tar.gz
Fix the serializing and changes builders, and really test them.
Diffstat (limited to 'sphinx/application.py')
-rw-r--r--sphinx/application.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/sphinx/application.py b/sphinx/application.py
index f75d746d..b2cdca99 100644
--- a/sphinx/application.py
+++ b/sphinx/application.py
@@ -367,11 +367,15 @@ class TemplateBridge(object):
that renders templates given a template name and a context.
"""
- def init(self, builder):
+ def init(self, builder, theme=None, dirs=None):
"""
- Called by the builder to initialize the template system. *builder*
- is the builder object; you'll probably want to look at the value of
- ``builder.config.templates_path``.
+ Called by the builder to initialize the template system.
+
+ *builder* is the builder object; you'll probably want to look at the
+ value of ``builder.config.templates_path``.
+
+ *theme* is a :class:`sphinx.theming.Theme` object or None; in the latter
+ case, *dirs* can be list of fixed directories to look for templates.
"""
raise NotImplementedError('must be implemented in subclasses')