mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merged in mattpap/sphinx (pull request #8)
This commit is contained in:
commit
3e649cf681
@ -472,6 +472,9 @@ class Sphinx(object):
|
||||
|
||||
def add_stylesheet(self, filename):
|
||||
from sphinx.builders.html import StandaloneHTMLBuilder
|
||||
if '://' in filename:
|
||||
StandaloneHTMLBuilder.css_files.append(filename)
|
||||
else:
|
||||
StandaloneHTMLBuilder.css_files.append(
|
||||
posixpath.join('_static', filename))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user