diff options
| author | Georg Brandl <georg@python.org> | 2009-06-16 21:05:20 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2009-06-16 21:05:20 +0200 |
| commit | 53cc9c63d442dc56cfe2e22703f2dddae01e0e70 (patch) | |
| tree | fb7cb77908083e4a1a89f6d39aff25055e552a5a /sphinx/application.py | |
| parent | 71d862289c1bfc29fa75e18d82cb10ec89fc92bb (diff) | |
| download | sphinx-53cc9c63d442dc56cfe2e22703f2dddae01e0e70.tar.gz | |
#200: Added ``Sphinx.add_stylesheet()``.
Diffstat (limited to 'sphinx/application.py')
| -rw-r--r-- | sphinx/application.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 7e926e57..b9c56d9f 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -323,6 +323,11 @@ class Sphinx(object): StandaloneHTMLBuilder.script_files.append( posixpath.join('_static', filename)) + def add_stylesheet(self, filename): + from sphinx.builders.html import StandaloneHTMLBuilder + StandaloneHTMLBuilder.css_files.append( + posixpath.join('_static', filename)) + def add_lexer(self, alias, lexer): from sphinx.highlighting import lexers if lexers is None: |
