Show More
The requested changes are too big and content was truncated. Show full diff
1 | NO CONTENT: new file 100644 |
|
NO CONTENT: new file 100644 | ||
The requested commit or file is too big and content was truncated. Show full diff |
@@ -191,7 +191,7 b' let' | |||||
191 | # check required files |
|
191 | # check required files | |
192 | STATIC_CHECK="/robots.txt /502.html |
|
192 | STATIC_CHECK="/robots.txt /502.html | |
193 | /js/scripts.js /js/rhodecode-components.js |
|
193 | /js/scripts.js /js/rhodecode-components.js | |
194 | /css/style.css /css/style-polymer.css" |
|
194 | /css/style.css /css/style-polymer.css /css/style-ipython.css" | |
195 |
|
195 | |||
196 | for file in $STATIC_CHECK; |
|
196 | for file in $STATIC_CHECK; | |
197 | do |
|
197 | do |
@@ -108,7 +108,8 b'' | |||||
108 | }, |
|
108 | }, | |
109 | "files": { |
|
109 | "files": { | |
110 | "<%= dirs.css.dest %>/style.css": "<%= dirs.css.src %>/main.less", |
|
110 | "<%= dirs.css.dest %>/style.css": "<%= dirs.css.src %>/main.less", | |
111 | "<%= dirs.css.dest %>/style-polymer.css": "<%= dirs.css.src %>/polymer.less" |
|
111 | "<%= dirs.css.dest %>/style-polymer.css": "<%= dirs.css.src %>/polymer.less", | |
|
112 | "<%= dirs.css.dest %>/style-ipython.css": "<%= dirs.css.src %>/ipython.less" | |||
112 | } |
|
113 | } | |
113 | }, |
|
114 | }, | |
114 | "production": { |
|
115 | "production": { | |
@@ -119,7 +120,8 b'' | |||||
119 | }, |
|
120 | }, | |
120 | "files": { |
|
121 | "files": { | |
121 | "<%= dirs.css.dest %>/style.css": "<%= dirs.css.src %>/main.less", |
|
122 | "<%= dirs.css.dest %>/style.css": "<%= dirs.css.src %>/main.less", | |
122 | "<%= dirs.css.dest %>/style-polymer.css": "<%= dirs.css.src %>/polymer.less" |
|
123 | "<%= dirs.css.dest %>/style-polymer.css": "<%= dirs.css.src %>/polymer.less", | |
|
124 | "<%= dirs.css.dest %>/style-ipython.css": "<%= dirs.css.src %>/ipython.less" | |||
123 | } |
|
125 | } | |
124 | }, |
|
126 | }, | |
125 | "components": { |
|
127 | "components": { |
@@ -500,7 +500,6 b' class MarkupRenderer(object):' | |||||
500 | (body, resources) = html_exporter.from_notebook_node(notebook) |
|
500 | (body, resources) = html_exporter.from_notebook_node(notebook) | |
501 | header = '<!-- ## IPYTHON NOTEBOOK RENDERING ## -->' |
|
501 | header = '<!-- ## IPYTHON NOTEBOOK RENDERING ## -->' | |
502 | js = MakoTemplate(r''' |
|
502 | js = MakoTemplate(r''' | |
503 | <!-- Load mathjax --> |
|
|||
504 |
|
|
503 | <!-- MathJax configuration --> | |
505 |
|
|
504 | <script type="text/x-mathjax-config"> | |
506 |
|
|
505 | MathJax.Hub.Config({ | |
@@ -526,12 +525,13 b' class MarkupRenderer(object):' | |||||
526 |
|
|
525 | showMathMenu: false | |
527 |
|
|
526 | }); | |
528 |
|
|
527 | </script> | |
529 |
|
|
528 | <!-- End of MathJax configuration --> | |
530 |
|
|
529 | <script src="${h.asset('js/src/math_jax/MathJax.js')}"></script> | |
531 | ''').render(h=helpers) |
|
530 | ''').render(h=helpers) | |
532 |
|
531 | |||
533 | css = '<style>{}</style>'.format( |
|
532 | css = MakoTemplate(r''' | |
534 | ''.join(_sanitize_resources(resources['inlining']['css']))) |
|
533 | <link rel="stylesheet" type="text/css" href="${h.asset('css/style-ipython.css', ver=ver)}" media="screen"/> | |
|
534 | ''').render(h=helpers, ver='ver1') | |||
535 |
|
535 | |||
536 | body = '\n'.join([header, css, js, body]) |
|
536 | body = '\n'.join([header, css, js, body]) | |
537 | return body, resources |
|
537 | return body, resources |
General Comments 0
You need to be logged in to leave comments.
Login now