diff options
| author | Georg Brandl <georg@python.org> | 2009-02-21 17:17:21 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-02-21 17:17:21 +0100 |
| commit | 0cbd0ddc0d9e094e3f15956ed6f9e1841d1381ad (patch) | |
| tree | 4ced4737260993cc56ff13422db8b365270fc3ef /sphinx/application.py | |
| parent | 01bf7e7470533b166349ac98b6941ee899153609 (diff) | |
| download | sphinx-0cbd0ddc0d9e094e3f15956ed6f9e1841d1381ad.tar.gz | |
Fix the serializing and changes builders, and really test them.
Diffstat (limited to 'sphinx/application.py')
| -rw-r--r-- | sphinx/application.py | 12 |
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') |
