Show More
The requested changes are too big and content was truncated. Show full diff
|
1 | 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 | 191 | # check required files |
|
192 | 192 | STATIC_CHECK="/robots.txt /502.html |
|
193 | 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 | 196 | for file in $STATIC_CHECK; |
|
197 | 197 | do |
@@ -108,7 +108,8 b'' | |||
|
108 | 108 | }, |
|
109 | 109 | "files": { |
|
110 | 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 | 115 | "production": { |
@@ -119,7 +120,8 b'' | |||
|
119 | 120 | }, |
|
120 | 121 | "files": { |
|
121 | 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 | 127 | "components": { |
@@ -500,38 +500,38 b' class MarkupRenderer(object):' | |||
|
500 | 500 | (body, resources) = html_exporter.from_notebook_node(notebook) |
|
501 | 501 | header = '<!-- ## IPYTHON NOTEBOOK RENDERING ## -->' |
|
502 | 502 | js = MakoTemplate(r''' |
|
503 |
<!-- |
|
|
504 | <!-- MathJax configuration --> | |
|
505 | <script type="text/x-mathjax-config"> | |
|
506 | MathJax.Hub.Config({ | |
|
507 | jax: ["input/TeX","output/HTML-CSS", "output/PreviewHTML"], | |
|
508 | extensions: ["tex2jax.js","MathMenu.js","MathZoom.js", "fast-preview.js", "AssistiveMML.js", "[Contrib]/a11y/accessibility-menu.js"], | |
|
509 | TeX: { | |
|
510 | extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"] | |
|
511 |
|
|
|
512 | tex2jax: { | |
|
513 |
|
|
|
514 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ], | |
|
515 |
|
|
|
516 | processEnvironments: true | |
|
517 | }, | |
|
518 |
|
|
|
519 | // we use CSS to left justify single line equations in code cells. | |
|
520 | displayAlign: 'center', | |
|
521 | "HTML-CSS": { | |
|
522 | styles: {'.MathJax_Display': {"margin": 0}}, | |
|
523 | linebreaks: { automatic: true }, | |
|
524 | availableFonts: ["STIX", "TeX"] | |
|
525 | }, | |
|
526 | showMathMenu: false | |
|
527 |
|
|
|
528 | </script> | |
|
529 | <!-- End of mathjax configuration --> | |
|
530 | <script src="${h.asset('js/src/math_jax/MathJax.js')}"></script> | |
|
503 | <!-- MathJax configuration --> | |
|
504 | <script type="text/x-mathjax-config"> | |
|
505 | MathJax.Hub.Config({ | |
|
506 | 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 | TeX: { | |
|
509 | extensions: ["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"] | |
|
510 | }, | |
|
511 | tex2jax: { | |
|
512 | inlineMath: [ ['$','$'], ["\\(","\\)"] ], | |
|
513 | displayMath: [ ['$$','$$'], ["\\[","\\]"] ], | |
|
514 | processEscapes: true, | |
|
515 | processEnvironments: true | |
|
516 | }, | |
|
517 | // Center justify equations in code and markdown cells. Elsewhere | |
|
518 | // we use CSS to left justify single line equations in code cells. | |
|
519 | displayAlign: 'center', | |
|
520 | "HTML-CSS": { | |
|
521 | styles: {'.MathJax_Display': {"margin": 0}}, | |
|
522 | linebreaks: { automatic: true }, | |
|
523 | availableFonts: ["STIX", "TeX"] | |
|
524 | }, | |
|
525 | showMathMenu: false | |
|
526 | }); | |
|
527 | </script> | |
|
528 | <!-- End of MathJax configuration --> | |
|
529 | <script src="${h.asset('js/src/math_jax/MathJax.js')}"></script> | |
|
531 | 530 | ''').render(h=helpers) |
|
532 | 531 | |
|
533 | css = '<style>{}</style>'.format( | |
|
534 | ''.join(_sanitize_resources(resources['inlining']['css']))) | |
|
532 | css = MakoTemplate(r''' | |
|
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 | 536 | body = '\n'.join([header, css, js, body]) |
|
537 | 537 | return body, resources |
General Comments 0
You need to be logged in to leave comments.
Login now