Skip to content

Commit

Permalink
Deploying to gh-pages from @ 2fae1c9 πŸš€
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Jan 30, 2024
1 parent 103067c commit 6bd97bd
Show file tree
Hide file tree
Showing 49 changed files with 546 additions and 87 deletions.
467 changes: 430 additions & 37 deletions odoc.support/odoc.css

Large diffs are not rendered by default.

66 changes: 66 additions & 0 deletions odoc.support/odoc_search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/* The browsers interpretation of the CORS origin policy prevents to run
webworkers from javascript files fetched from the file:// protocol. This hack
is to workaround this restriction. */
function createWebWorker() {
var searchs = search_urls.map((search_url) => {
let parts = document.location.href.split("/");
parts[parts.length - 1] = search_url;
return '"' + parts.join("/") + '"';
});
blobContents = ["importScripts(" + searchs.join(",") + ");"];
var blob = new Blob(blobContents, { type: "application/javascript" });
var blobUrl = URL.createObjectURL(blob);

var worker = new Worker(blobUrl);
URL.revokeObjectURL(blobUrl);

return worker;
}

var worker;
var waiting = 0;

function wait() {
waiting = waiting + 1;
document.querySelector(".search-snake").classList.add("search-busy");
}

function stop_waiting() {
if (waiting > 0) waiting = waiting - 1;
else waiting = 0;
if (waiting == 0) {
document.querySelector(".search-snake").classList.remove("search-busy");
}
}

document.querySelector(".search-bar").addEventListener("focus", (ev) => {
if (typeof worker == "undefined") {
worker = createWebWorker();
worker.onmessage = (e) => {
stop_waiting();
let results = e.data;
let search_results = document.querySelector(".search-result");
search_results.innerHTML = "";
let f = (entry) => {
let search_result = document.createElement("a");
search_result.classList.add("search-entry");
search_result.href = base_url + entry.url;
search_result.innerHTML = entry.html;
search_results.appendChild(search_result);
};
results.forEach(f);
let search_request = document.querySelector(".search-bar").value;
if (results.length == 0 && search_request != "") {
let no_result = document.createElement("div");
no_result.classList.add("search-no-result");
no_result.innerText = "No result...";
search_results.appendChild(no_result);
}
};
}
});

document.querySelector(".search-bar").addEventListener("input", (ev) => {
wait();
worker.postMessage(ev.target.value);
});
2 changes: 1 addition & 1 deletion timedesc-json/Timedesc_json/Time_zone/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Time_zone (timedesc-json.Timedesc_json.Time_zone)</title><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">timedesc-json</a> &#x00BB; <a href="../index.html">Timedesc_json</a> &#x00BB; Time_zone</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json.Time_zone</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_json"><a href="#val-to_json" class="anchor"></a><code><span><span class="keyword">val</span> to_json : <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> <span class="arrow">&#45;&gt;</span></span> <span class="xref-unresolved">Yojson</span>.Basic.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_json"><a href="#val-of_json" class="anchor"></a><code><span><span class="keyword">val</span> of_json : <span><span class="xref-unresolved">Yojson</span>.Basic.t <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_string"><a href="#val-of_string" class="anchor"></a><code><span><span class="keyword">val</span> of_string : <span>string <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div></div></body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Time_zone (timedesc-json.Timedesc_json.Time_zone)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">timedesc-json</a> &#x00BB; <a href="../index.html">Timedesc_json</a> &#x00BB; Time_zone</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json.Time_zone</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_json"><a href="#val-to_json" class="anchor"></a><code><span><span class="keyword">val</span> to_json : <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> <span class="arrow">&#45;&gt;</span></span> <span class="xref-unresolved">Yojson</span>.Basic.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_json"><a href="#val-of_json" class="anchor"></a><code><span><span class="keyword">val</span> of_json : <span><span class="xref-unresolved">Yojson</span>.Basic.t <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_string"><a href="#val-of_string" class="anchor"></a><code><span><span class="keyword">val</span> of_string : <span>string <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../timedesc/Timedesc/Time_zone/index.html#type-t">Timedesc.Time_zone.t</a> option</span></span></code></div></div></div></body></html>
2 changes: 1 addition & 1 deletion timedesc-json/Timedesc_json/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Timedesc_json (timedesc-json.Timedesc_json)</title><link rel="stylesheet" href="../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">timedesc-json</a> &#x00BB; Timedesc_json</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Time_zone"><a href="#module-Time_zone" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Time_zone/index.html">Time_zone</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Timedesc_json (timedesc-json.Timedesc_json)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">timedesc-json</a> &#x00BB; Timedesc_json</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_json</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec module anchored" id="module-Time_zone"><a href="#module-Time_zone" class="anchor"></a><code><span><span class="keyword">module</span> <a href="Time_zone/index.html">Time_zone</a></span><span> : <span class="keyword">sig</span> ... <span class="keyword">end</span></span></code></div></div></div></body></html>
2 changes: 1 addition & 1 deletion timedesc-json/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>index (timedesc-json.index)</title><link rel="stylesheet" href="../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – timedesc-json</nav><header class="odoc-preamble"><h1 id="timedesc-json-index"><a href="#timedesc-json-index" class="anchor"></a>timedesc-json index</h1></header><nav class="odoc-toc"><ul><li><a href="#library-timedesc-json">Library timedesc-json</a></li></ul></nav><div class="odoc-content"><h2 id="library-timedesc-json"><a href="#library-timedesc-json" class="anchor"></a>Library timedesc-json</h2><p>The entry point of this library is the module: <a href="Timedesc_json/index.html"><code>Timedesc_json</code></a>.</p></div></body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>index (timedesc-json.index)</title><meta charset="utf-8"/><link rel="stylesheet" href="../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – timedesc-json</nav><header class="odoc-preamble"><h1 id="timedesc-json-index"><a href="#timedesc-json-index" class="anchor"></a>timedesc-json index</h1></header><nav class="odoc-toc"><ul><li><a href="#library-timedesc-json">Library timedesc-json</a></li></ul></nav><div class="odoc-content"><h2 id="library-timedesc-json"><a href="#library-timedesc-json" class="anchor"></a>Library timedesc-json</h2><p>The entry point of this library is the module: <a href="Timedesc_json/index.html"><code>Timedesc_json</code></a>.</p></div></body></html>
2 changes: 1 addition & 1 deletion timedesc-sexp/Timedesc_sexp/Date/index.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Date (timedesc-sexp.Timedesc_sexp.Date)</title><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.3.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">timedesc-sexp</a> &#x00BB; <a href="../index.html">Timedesc_sexp</a> &#x00BB; Date</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_sexp.Date</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp"><a href="#val-to_sexp" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">&#45;&gt;</span></span> <span class="xref-unresolved">Sexplib</span>.Sexp.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp_string"><a href="#val-to_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp_string : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">&#45;&gt;</span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp"><a href="#val-of_sexp" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp : <span><span class="xref-unresolved">Sexplib</span>.Sexp.t <span class="arrow">&#45;&gt;</span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp_string"><a href="#val-of_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp_string : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-pp_sexp"><a href="#val-pp_sexp" class="anchor"></a><code><span><span class="keyword">val</span> pp_sexp : <span><span class="xref-unresolved">Stdlib</span>.Format.formatter <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div></div></div></body></html>
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>Date (timedesc-sexp.Timedesc_sexp.Date)</title><meta charset="utf-8"/><link rel="stylesheet" href="../../../odoc.support/odoc.css"/><meta name="generator" content="odoc 2.4.1"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../../odoc.support/highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../../index.html">timedesc-sexp</a> &#x00BB; <a href="../index.html">Timedesc_sexp</a> &#x00BB; Date</nav><header class="odoc-preamble"><h1>Module <code><span>Timedesc_sexp.Date</span></code></h1></header><div class="odoc-content"><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp"><a href="#val-to_sexp" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">&#45;&gt;</span></span> <span class="xref-unresolved">Sexplib</span>.Sexp.t</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-to_sexp_string"><a href="#val-to_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> to_sexp_string : <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">&#45;&gt;</span></span> string</span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp"><a href="#val-of_sexp" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp : <span><span class="xref-unresolved">Sexplib</span>.Sexp.t <span class="arrow">&#45;&gt;</span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-of_sexp_string"><a href="#val-of_sexp_string" class="anchor"></a><code><span><span class="keyword">val</span> of_sexp_string : <span>string <span class="arrow">&#45;&gt;</span></span> <span><span>(<a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a>, string)</span> <span class="xref-unresolved">Stdlib</span>.result</span></span></code></div></div><div class="odoc-spec"><div class="spec value anchored" id="val-pp_sexp"><a href="#val-pp_sexp" class="anchor"></a><code><span><span class="keyword">val</span> pp_sexp : <span><span class="xref-unresolved">Stdlib</span>.Format.formatter <span class="arrow">&#45;&gt;</span></span> <span><a href="../../../timedesc/Timedesc/Date/index.html#type-t">Timedesc.Date.t</a> <span class="arrow">&#45;&gt;</span></span> unit</span></code></div></div></div></body></html>
Loading

0 comments on commit 6bd97bd

Please sign in to comment.