Commit 9a6eab3c authored by Bruno Burke's avatar Bruno Burke 🍔
Browse files

add missing katex js/css; fix standalone renderer

parent a6d4e56b
Pipeline #116897 passed with stages
in 8 minutes and 23 seconds
......@@ -51,6 +51,7 @@ pages:
- apk add --update nodejs npm
- npm run start
- npx shadow-cljs release devcards
- npx shadow-cljs release standalone-renderer
- mkdir public
- cp -r resources/public/* public
- cp -r resources/public/devcards/* public
......
......@@ -7,6 +7,9 @@
<script src="node_modules/tinymce/tinymce.js"></script>
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<script src="node_modules/katex/dist/katex.js"></script>
<script src="node_modules/katex/dist/contrib/auto-render.min.js"></script>
<link rel="stylesheet" href="node_modules/katex/dist/katex.css">
<link rel="stylesheet" href="css/screen.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
......
<!doctype html>
<html lang="en">
<head>
<meta charset='utf-8'>
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script src="node_modules/tinymce/tinymce.js"></script>
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css">
<link rel="stylesheet" href="css/screen.css">
<script src="node_modules/chart.js/dist/chart.js"></script>
<link rel="stylesheet" href="node_modules/quill/dist/quill.snow.css">
<script src="node_modules/sortablejs/Sortable.js"></script>
<script src="node_modules/codemirror/lib/codemirror.js"></script>
<script src="node_modules/codemirror/mode/python/python.js"></script>
<script src="node_modules/codemirror/mode/clojure/clojure.js"></script>
<script src="node_modules/codemirror/mode/javascript/javascript.js"></script>
<script src="node_modules/codemirror/mode/clike/clike.js"></script>
<script src="node_modules/codemirror/mode/markdown/markdown.js"></script>
<script src="node_modules/codemirror/mode/commonlisp/commonlisp.js"></script>
<script src="node_modules/codemirror/mode/scheme/scheme.js"></script>
<script src="node_modules/katex/dist/katex.js"></script>
<script src="node_modules/katex/dist/contrib/auto-render.min.js"></script>
<link rel="stylesheet" href="node_modules/katex/dist/katex.css">
<script src="node_modules/mathjs/dist/math.min.js"></script>
<link rel="stylesheet" href="node_modules/codemirror/lib/codemirror.css">
<style id="com-rigsomelight-devcards-addons-css"></style>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
<body>
<div id="app"></div>
<script src="js/devcards.js"></script>
</body>
</html>
......@@ -9,20 +9,12 @@
<link rel="stylesheet" href="css/screen.css">
<script src="node_modules/chart.js/dist/chart.js"></script>
<link rel="stylesheet" href="node_modules/quill/dist/quill.snow.css">
<script src="node_modules/sortablejs/Sortable.js"></script>
<script src="node_modules/codemirror/lib/codemirror.js"></script>
<script src="node_modules/codemirror/mode/python/python.js"></script>
<script src="node_modules/codemirror/mode/clojure/clojure.js"></script>
<script src="node_modules/codemirror/mode/javascript/javascript.js"></script>
<script src="node_modules/codemirror/mode/clike/clike.js"></script>
<script src="node_modules/codemirror/mode/commonlisp/commonlisp.js"></script>
<script src="node_modules/codemirror/mode/scheme/scheme.js"></script>
<script src="node_modules/katex/dist/katex.js"></script>
<script src="node_modules/katex/dist/contrib/auto-render.min.js"></script>
<link rel="stylesheet" href="node_modules/katex/dist/katex.css">
<script src="node_modules/mathjs/dist/math.min.js"></script>
<link rel="stylesheet" href="node_modules/codemirror/lib/codemirror.css">
<style id="com-rigsomelight-devcards-addons-css"></style>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
</head>
......@@ -55,7 +47,6 @@
:unselected-points 0}]}}]}
</script>
<div id="app"></div>
<!-- <script src="cljs-out/dev-main-standalone-renderer.js"></script> -->
<script src="js/standalone-renderer.js"></script>
<script type="text/javascript">
leukipp.components.standalone_renderer.render_element("pagetest", "app");
......
......@@ -29,4 +29,9 @@
:require "marked"}
"devcards-syntax-highlighter"
{:target :npm
:require "highlight.js"}}}}}}
:require "highlight.js"}}}}
:standalone-renderer
{:target :browser
:output-dir "resources/public/js"
:compiler-options {:output-feature-set :es8}
:modules {:standalone-renderer {:entries [leukipp.components.standalone-renderer]}}}}}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment