summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-07-23 10:02:10 +0200
committerGeorg Brandl <georg@python.org>2011-07-23 10:02:10 +0200
commitc9f09f9fc2017d3544806f6b15fc118bfcfc8220 (patch)
tree35e37851f136b773265a6f648d5359e2b55e3fb7
parente24dcf1def244de81486f936871702a308b39be8 (diff)
parentdd5eab286574b79db37f4ec21fed2ef2ab49d5b7 (diff)
downloadsphinx-c9f09f9fc2017d3544806f6b15fc118bfcfc8220.tar.gz
Merged in mattpap/sphinx (pull request #8)
-rw-r--r--sphinx/application.py7
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