Show More
@@ -83,34 +83,18 b' class CSSHtmlHeaderTransformer(ActivatableTransformer):' | |||||
83 | header = [] |
|
83 | header = [] | |
84 |
|
84 | |||
85 | #Construct path to iPy CSS |
|
85 | #Construct path to iPy CSS | |
86 |
s |
|
86 | sheet_filename = os.path.join(path.get_ipython_package_dir(), 'frontend', | |
87 | 'html', 'notebook', 'static') |
|
87 | 'html', 'notebook', 'static', 'style', 'style.min.css') | |
88 | base_path = os.path.join(static_path, 'base', 'css') |
|
|||
89 | style_path = os.path.join(static_path, 'style') |
|
|||
90 | less_path = os.path.join(static_path, 'notebook', 'less') |
|
|||
91 |
|
88 | |||
92 |
#Load e |
|
89 | #Load style CSS file. | |
93 | for sheet in [ |
|
90 | try: | |
94 | # TODO: do we need jquery and prettify? |
|
91 | with io.open(sheet_filename, encoding='utf-8') as file: | |
95 | # os.path.join(static, 'jquery', 'css', 'themes', 'base', |
|
92 | file_text = file.read() | |
96 | # 'jquery-ui.min.css'), |
|
93 | header.append(file_text) | |
97 | # os.path.join(static, 'prettify', 'prettify.css'), |
|
94 | except IOError: | |
98 |
|
95 | |||
99 | os.path.join(base_path, 'boilerplate.css'), |
|
96 | # New version of iPython with style.min.css, pass | |
100 | os.path.join(style_path, 'style.min.css'), |
|
97 | pass | |
101 | os.path.join(less_path, 'notebook.less'), |
|
|||
102 | os.path.join(less_path, 'renderedhtml.less'), |
|
|||
103 | #os.path.join(css, 'fbm.css'), |
|
|||
104 | ]: |
|
|||
105 |
|
||||
106 | try: |
|
|||
107 | with io.open(sheet, encoding='utf-8') as file: |
|
|||
108 | file_text = file.read() |
|
|||
109 | header.append(file_text) |
|
|||
110 | except IOError: |
|
|||
111 |
|
||||
112 | # New version of iPython with style.min.css, pass |
|
|||
113 | pass |
|
|||
114 |
|
98 | |||
115 | #Add pygments CSS |
|
99 | #Add pygments CSS | |
116 | pygments_css = HtmlFormatter().get_style_defs('.highlight') |
|
100 | pygments_css = HtmlFormatter().get_style_defs('.highlight') |
General Comments 0
You need to be logged in to leave comments.
Login now