##// END OF EJS Templates
styling: use sandboxed style for ipython so it doesn't affect style of application anymore.
marcink -
r3784:cc55d3ca default
parent child Browse files
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,7 +500,6 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 <!-- 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 <!-- End of mathjax configuration -->
528 <!-- End of MathJax configuration -->
530 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