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,38 +500,38 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 |
<!-- |
|
503 | <!-- MathJax configuration --> | |
504 | <!-- MathJax configuration --> |
|
504 | <script type="text/x-mathjax-config"> | |
505 | <script type="text/x-mathjax-config"> |
|
505 | MathJax.Hub.Config({ | |
506 | MathJax.Hub.Config({ |
|
506 | jax: ["input/TeX","output/HTML-CSS", "output/PreviewHTML"], | |
507 | jax: ["input/TeX","output/HTML-CSS", "output/PreviewHTML"], |
|
507 | extensions: ["tex2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "[Contrib]/a11y/accessibility-menu.js"], | |
508 | extensions: ["tex2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "[Contrib]/a11y/accessibility-menu.js"], |
|
508 | TeX: { | |
509 | TeX: { |
|
509 | extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"] | |
510 | extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"] |
|
510 | }, | |
511 |
|
|
511 | tex2jax: { | |
512 | tex2jax: { |
|
512 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
513 |
|
|
513 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ], | |
514 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ], |
|
514 | processEscapes: true, | |
515 |
|
|
515 | processEnvironments: true | |
516 | processEnvironments: true |
|
516 | }, | |
517 | }, |
|
517 | // Center justify equations in code and markdown cells. Elsewhere | |
518 |
|
|
518 | // we use CSS to left justify single line equations in code cells. | |
519 | // we use CSS to left justify single line equations in code cells. |
|
519 | displayAlign: 'center', | |
520 | displayAlign: 'center', |
|
520 | "HTML-CSS": { | |
521 | "HTML-CSS": { |
|
521 | styles: {'.MathJax_Display': {"margin": 0}}, | |
522 | styles: {'.MathJax_Display': {"margin": 0}}, |
|
522 | linebreaks: { automatic: true }, | |
523 | linebreaks: { automatic: true }, |
|
523 | availableFonts: ["STIX", "TeX"] | |
524 | availableFonts: ["STIX", "TeX"] |
|
524 | }, | |
525 | }, |
|
525 | showMathMenu: false | |
526 | showMathMenu: false |
|
526 | }); | |
527 |
|
|
527 | </script> | |
528 | </script> |
|
528 | <!-- End of MathJax configuration --> | |
529 | <!-- End of mathjax configuration --> |
|
529 | <script src="${h.asset('js/src/math_jax/MathJax.js')}"></script> | |
530 | <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