-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* MarkUs custom styling */ | ||
@use 'fonts'; | ||
@import '../common/constants'; | ||
|
||
.markus-annotation { | ||
background-color: $light-alert; | ||
} | ||
|
||
div.markus-annotation { | ||
border: 5px solid $sharp-line; | ||
} | ||
|
||
.markus-annotation-content { | ||
font-family: $fonts; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,45 @@ | ||
<!DOCTYPE html> | ||
<html lang="<%= I18n.locale %>"> | ||
<head> | ||
<% if @file_type == 'jupyter-notebook' %> | ||
<%= stylesheet_link_tag 'notebook_common' %> | ||
<% if @current_user&.theme == 'dark' %> | ||
<%= stylesheet_link_tag 'notebook_dark' %> | ||
<% else %> | ||
<%= stylesheet_link_tag 'notebook_light' %> | ||
<% end %> | ||
<%= javascript_include_tag 'require', nonce: true %> | ||
<%= javascript_tag nonce: true do %> | ||
// Same as mathjax_config.js except startup.typeset is true | ||
window.MathJax = { | ||
startup: { | ||
typeset: true | ||
}, | ||
tex: { | ||
// Allow inline single dollar sign notation | ||
inlineMath: [ | ||
["$", "$"], | ||
["\\(", "\\)"] | ||
], | ||
processEnvironments: true, | ||
processRefs: false | ||
}, | ||
options: { | ||
ignoreHtmlClass: "tex2jax_ignore", | ||
processHtmlClass: "tex2jax_process" | ||
}, | ||
svg: { | ||
fontCache: "global" | ||
} | ||
}; | ||
<% end %> | ||
<%= javascript_include_tag 'markus_notebook', nonce: true %> | ||
<%= javascript_include_tag 'plotly', nonce: true %> | ||
<head> | ||
<% if @file_type == 'jupyter-notebook' %> | ||
<%= stylesheet_link_tag 'notebook_common' %> | ||
<% if @current_user&.theme == 'dark' %> | ||
<%= stylesheet_link_tag 'notebook_dark' %> | ||
<% else %> | ||
<%= stylesheet_link_tag 'notebook_light' %> | ||
<% end %> | ||
</head> | ||
<body> | ||
<%= yield :layout %> | ||
</body> | ||
<%= javascript_include_tag 'plotly', nonce: true %> | ||
<% elsif @file_type == 'markdown' %> | ||
<%= stylesheet_link_tag 'rmd' %> | ||
<% end %> | ||
<%= javascript_include_tag 'require', nonce: true %> | ||
<%= javascript_tag nonce: true do %> | ||
// Same as mathjax_config.js except startup.typeset is true | ||
window.MathJax = { | ||
startup: { | ||
typeset: true | ||
}, | ||
tex: { | ||
// Allow inline single dollar sign notation | ||
inlineMath: [ | ||
["$", "$"], | ||
["\\(", "\\)"] | ||
], | ||
processEnvironments: true, | ||
processRefs: false | ||
}, | ||
options: { | ||
ignoreHtmlClass: "tex2jax_ignore", | ||
processHtmlClass: "tex2jax_process" | ||
}, | ||
svg: { | ||
fontCache: "global" | ||
} | ||
}; | ||
<% end %> | ||
<%= javascript_include_tag 'markus_notebook', nonce: true %> | ||
</head> | ||
<body> | ||
<%= yield :layout %> | ||
</body> | ||
</html> |