Commits

Georg Brandl committed 6d016f9 Merge

Merged in mattpap/sphinx (pull request #8)

Comments (0)

Files changed (1)

sphinx/application.py

 
     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