mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-14 17:32:12 -05:00
Merged in mattpap/sphinx (pull request #8)
This commit is contained in:
commit
3e649cf681
1 file changed
+5
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user