diff options
author | Georg Brandl <georg@python.org> | 2011-07-23 10:02:10 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-07-23 10:02:10 +0200 |
commit | c9f09f9fc2017d3544806f6b15fc118bfcfc8220 (patch) | |
tree | 35e37851f136b773265a6f648d5359e2b55e3fb7 | |
parent | e24dcf1def244de81486f936871702a308b39be8 (diff) | |
parent | dd5eab286574b79db37f4ec21fed2ef2ab49d5b7 (diff) | |
download | sphinx-c9f09f9fc2017d3544806f6b15fc118bfcfc8220.tar.gz |
Merged in mattpap/sphinx (pull request #8)
-rw-r--r-- | sphinx/application.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sphinx/application.py b/sphinx/application.py index 840fc46b..dec9c13c 100644 --- a/sphinx/application.py +++ b/sphinx/application.py @@ -472,8 +472,11 @@ class Sphinx(object): def add_stylesheet(self, filename): from sphinx.builders.html import StandaloneHTMLBuilder - StandaloneHTMLBuilder.css_files.append( - posixpath.join('_static', filename)) + if '://' in filename: + StandaloneHTMLBuilder.css_files.append(filename) + else: + StandaloneHTMLBuilder.css_files.append( + posixpath.join('_static', filename)) def add_lexer(self, alias, lexer): from sphinx.highlighting import lexers |