Verified Commit 70590aa9 authored by Camil Staps's avatar Camil Staps 🚀

Use clean-highlighter from npm

parent a2597cd9
......@@ -46,9 +46,9 @@ RUN apt-get update -qq && apt-get install -qq python3 ca-certificates git\
&& apt-get remove -qq python3 ca-certificates git\
&& apt-get autoremove -qq
RUN apt-get update -qq && apt-get install -qq ca-certificates\
&& mkdir /var/www/clean.js\
&& curl -L $(curl -s https://api.github.com/repos/clean-cloogle/clean.js/releases/latest | grep browser_ | cut -d'"' -f4)\
| tar xzv --strip-components=1 --directory=/var/www/clean.js\
&& apt-get remove -qq ca-certificates\
RUN apt-get update -qq && apt-get install -qq ca-certificates jq\
&& mkdir /var/www/clean-highlighter\
&& curl $(curl https://registry.npmjs.org/clean-highlighter/ | jq -r '.versions[."dist-tags".latest].dist.tarball')\
| tar xzv --strip-components=1 --directory=/var/www/clean-highlighter\
&& apt-get remove -qq ca-certificates jq\
&& apt-get autoremove -qq
../clean-highlighter
\ No newline at end of file
../clean.js
\ No newline at end of file
......@@ -7,11 +7,11 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/>
<meta name="keywords" content="Clean,Clean language,Concurrent Clean,search,functions,search engine,programming language,clean platform,iTasks,cloogle,hoogle"/>
<script src="clean.js/clean.js" defer="defer"></script>
<script src="clean-highlighter/clean.js" defer="defer"></script>
<script src="common.js" defer="defer"></script>
<script src="api.js" defer="defer"></script>
<link rel="stylesheet" href="common.css" type="text/css"/>
<link rel="stylesheet" href="clean.js/clean.css" type="text/css"/>
<link rel="stylesheet" href="clean-highlighter/clean.css" type="text/css"/>
<link rel="stylesheet" href="frontend.css" type="text/css"/>
</head>
<body>
......
......@@ -7,11 +7,11 @@
<meta name="description" content="Cloogle is the unofficial Clean language search engine"/>
<meta name="keywords" content="Clean,Clean language,Concurrent Clean,search,functions,search engine,programming language,clean platform,iTasks,cloogle,hoogle"/>
<script src="../common.js" defer="defer"></script>
<script src="../clean.js/clean.js" defer="defer"></script>
<script src="../clean-highlighter/clean.js" defer="defer"></script>
<script src="../browser.js" defer="defer"></script>
<script src="view.js" defer="defer"></script>
<link rel="stylesheet" href="../common.css" type="text/css"/>
<link rel="stylesheet" href="../clean.js/clean.css" type="text/css"/>
<link rel="stylesheet" href="../clean-highlighter/clean.css" type="text/css"/>
<link rel="stylesheet" href="view.css" type="text/css"/>
</head>
<body class="framelike">
......
......@@ -6,10 +6,10 @@
<meta name="description" content="Live Cloogle statistics"/>
<title>Live Cloogle Stats</title>
<script type="text/javascript" src="chart.js" defer="defer"></script>
<script type="text/javascript" src="../clean.js/clean.js" defer="defer"></script>
<script type="text/javascript" src="../clean-highlighter/clean.js" defer="defer"></script>
<script type="text/javascript" src="../common.js" defer="defer"></script>
<script type="text/javascript" src="client.js" defer="defer"></script>
<link rel="stylesheet" href="../clean.js/clean.css" type="text/css"/>
<link rel="stylesheet" href="../clean-highlighter/clean.css" type="text/css"/>
<style type="text/css">
#title {
font-family: sans-serif;
......
Markdown is supported
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