@ -1,232 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="shortcut icon" href="/img/favicon.ico">
|
|
||||||
|
|
||||||
|
|
||||||
<title>RELOG</title>
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/all.css">
|
|
||||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.12.0/css/v4-shims.css">
|
|
||||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/hack-font@3.3.0/build/web/hack.min.css">
|
|
||||||
<link href='//rsms.me/inter/inter.css' rel='stylesheet' type='text/css'>
|
|
||||||
<link href='//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,700italic,400,300,600,700&subset=latin-ext,latin' rel='stylesheet' type='text/css'>
|
|
||||||
<link href="/css/bootstrap-custom.min.css" rel="stylesheet">
|
|
||||||
<link href="/css/base.min.css" rel="stylesheet">
|
|
||||||
<link href="/css/cinder.min.css" rel="stylesheet">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.0/build/styles/github.min.css">
|
|
||||||
|
|
||||||
|
|
||||||
<link href="/css/custom.css" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
<!-- Collapsed navigation -->
|
|
||||||
<div class="navbar-header">
|
|
||||||
<!-- Expander button -->
|
|
||||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
||||||
<span class="sr-only">Toggle navigation</span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- Main title -->
|
|
||||||
|
|
||||||
|
|
||||||
<a class="navbar-brand" href="/.">RELOG</a>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Expanded navigation -->
|
|
||||||
<div class="navbar-collapse collapse">
|
|
||||||
<!-- Main navigation -->
|
|
||||||
<ul class="nav navbar-nav">
|
|
||||||
|
|
||||||
|
|
||||||
<li >
|
|
||||||
<a href="/.">Home</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li >
|
|
||||||
<a href="/usage/">Usage</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li >
|
|
||||||
<a href="/format/">Data Format</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li >
|
|
||||||
<a href="/reports/">Reports</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li >
|
|
||||||
<a href="/model/">Optimization Model</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<ul class="nav navbar-nav navbar-right">
|
|
||||||
<li>
|
|
||||||
<a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
|
|
||||||
<i class="fas fa-search"></i> Search
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="https://github.com/ANL-CEEESA/RELOG/"><i class="fab fa-github"></i> GitHub</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
|
|
||||||
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div id="main-content" class="span12">
|
|
||||||
<h1 id="404-page-not-found" style="text-align: center">404</h1>
|
|
||||||
<p style="text-align: center"><strong>Page not found</strong></p>
|
|
||||||
<p style="text-align: center"><a href="/">Home</a></p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
<footer class="col-md-12 text-center">
|
|
||||||
|
|
||||||
|
|
||||||
<hr>
|
|
||||||
<p>
|
|
||||||
<small>Copyright © 2020, UChicago Argonne, LLC. All Rights Reserved.</small><br>
|
|
||||||
|
|
||||||
<small>Documentation built with <a href="http://www.mkdocs.org/">MkDocs</a>.</small>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
|
||||||
<script src="/js/bootstrap-3.0.3.min.js"></script>
|
|
||||||
|
|
||||||
|
|
||||||
<script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@9.18.0/build/highlight.min.js"></script>
|
|
||||||
|
|
||||||
<script>hljs.initHighlightingOnLoad();</script>
|
|
||||||
|
|
||||||
|
|
||||||
<script>var base_url = "/"</script>
|
|
||||||
|
|
||||||
<script src="/js/base.js"></script>
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
||||||
<script src="/js/mathjax.js"></script>
|
|
||||||
<script src="/search/main.js"></script>
|
|
||||||
|
|
||||||
<div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="searchModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog modal-lg">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<button type="button" class="close" data-dismiss="modal">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
<span class="sr-only">Close</span>
|
|
||||||
</button>
|
|
||||||
<h4 class="modal-title" id="searchModalLabel">Search</h4>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<p>
|
|
||||||
From here you can search these documents. Enter
|
|
||||||
your search terms below.
|
|
||||||
</p>
|
|
||||||
<form>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
<div id="mkdocs-search-results"></div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="keyboardModalLabel" aria-hidden="true">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<div class="modal-content">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h4 class="modal-title" id="keyboardModalLabel">Keyboard Shortcuts</h4>
|
|
||||||
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<table class="table">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th style="width: 20%;">Keys</th>
|
|
||||||
<th>Action</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<tr>
|
|
||||||
<td class="help shortcut"><kbd>?</kbd></td>
|
|
||||||
<td>Open this help</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="next shortcut"><kbd>n</kbd></td>
|
|
||||||
<td>Next page</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="prev shortcut"><kbd>p</kbd></td>
|
|
||||||
<td>Previous page</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td class="search shortcut"><kbd>s</kbd></td>
|
|
||||||
<td>Search</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
|
|
||||||
</html>
|
|
@ -0,0 +1,36 @@
|
|||||||
|
@media screen and (min-width: 1056px) {
|
||||||
|
#documenter .docs-main {
|
||||||
|
max-width: 65rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
tbody, thead, pre {
|
||||||
|
border: 1px solid rgba(0, 0, 0, 0.25);
|
||||||
|
}
|
||||||
|
|
||||||
|
table td, th {
|
||||||
|
padding: 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
table p {
|
||||||
|
margin-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
table td code {
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr,
|
||||||
|
table th {
|
||||||
|
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
||||||
|
}
|
||||||
|
|
||||||
|
table tr:last-child {
|
||||||
|
border-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
background-color: transparent;
|
||||||
|
color: rgb(232, 62, 140);
|
||||||
|
}
|
@ -0,0 +1,331 @@
|
|||||||
|
// Generated by Documenter.jl
|
||||||
|
requirejs.config({
|
||||||
|
paths: {
|
||||||
|
'highlight-julia': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/julia.min',
|
||||||
|
'headroom': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.12.0/headroom.min',
|
||||||
|
'jqueryui': 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min',
|
||||||
|
'katex-auto-render': 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/contrib/auto-render.min',
|
||||||
|
'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min',
|
||||||
|
'headroom-jquery': 'https://cdnjs.cloudflare.com/ajax/libs/headroom/0.12.0/jQuery.headroom.min',
|
||||||
|
'katex': 'https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min',
|
||||||
|
'highlight': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/highlight.min',
|
||||||
|
'highlight-julia-repl': 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.5.1/languages/julia-repl.min',
|
||||||
|
},
|
||||||
|
shim: {
|
||||||
|
"highlight-julia": {
|
||||||
|
"deps": [
|
||||||
|
"highlight"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"katex-auto-render": {
|
||||||
|
"deps": [
|
||||||
|
"katex"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"headroom-jquery": {
|
||||||
|
"deps": [
|
||||||
|
"jquery",
|
||||||
|
"headroom"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"highlight-julia-repl": {
|
||||||
|
"deps": [
|
||||||
|
"highlight"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery', 'katex', 'katex-auto-render'], function($, katex, renderMathInElement) {
|
||||||
|
$(document).ready(function() {
|
||||||
|
renderMathInElement(
|
||||||
|
document.body,
|
||||||
|
{
|
||||||
|
"delimiters": [
|
||||||
|
{
|
||||||
|
"left": "$",
|
||||||
|
"right": "$",
|
||||||
|
"display": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"left": "$$",
|
||||||
|
"right": "$$",
|
||||||
|
"display": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"left": "\\[",
|
||||||
|
"right": "\\]",
|
||||||
|
"display": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
);
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery', 'highlight', 'highlight-julia', 'highlight-julia-repl'], function($) {
|
||||||
|
$(document).ready(function() {
|
||||||
|
hljs.highlightAll();
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require([], function() {
|
||||||
|
function addCopyButtonCallbacks() {
|
||||||
|
for (const el of document.getElementsByTagName("pre")) {
|
||||||
|
const button = document.createElement("button");
|
||||||
|
button.classList.add("copy-button", "fas", "fa-copy");
|
||||||
|
el.appendChild(button);
|
||||||
|
|
||||||
|
const success = function () {
|
||||||
|
button.classList.add("success", "fa-check");
|
||||||
|
button.classList.remove("fa-copy");
|
||||||
|
};
|
||||||
|
|
||||||
|
const failure = function () {
|
||||||
|
button.classList.add("error", "fa-times");
|
||||||
|
button.classList.remove("fa-copy");
|
||||||
|
};
|
||||||
|
|
||||||
|
button.addEventListener("click", function () {
|
||||||
|
copyToClipboard(el.innerText).then(success, failure);
|
||||||
|
|
||||||
|
setTimeout(function () {
|
||||||
|
button.classList.add("fa-copy");
|
||||||
|
button.classList.remove("success", "fa-check", "fa-times");
|
||||||
|
}, 5000);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function copyToClipboard(text) {
|
||||||
|
// clipboard API is only available in secure contexts
|
||||||
|
if (window.navigator && window.navigator.clipboard) {
|
||||||
|
return window.navigator.clipboard.writeText(text);
|
||||||
|
} else {
|
||||||
|
return new Promise(function (resolve, reject) {
|
||||||
|
try {
|
||||||
|
const el = document.createElement("textarea");
|
||||||
|
el.textContent = text;
|
||||||
|
el.style.position = "fixed";
|
||||||
|
el.style.opacity = 0;
|
||||||
|
document.body.appendChild(el);
|
||||||
|
el.select();
|
||||||
|
document.execCommand("copy");
|
||||||
|
|
||||||
|
resolve();
|
||||||
|
} catch (err) {
|
||||||
|
reject(err);
|
||||||
|
} finally {
|
||||||
|
document.body.removeChild(el);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (document.readyState === "loading") {
|
||||||
|
document.addEventListener("DOMContentLoaded", addCopyButtonCallbacks);
|
||||||
|
} else {
|
||||||
|
addCopyButtonCallbacks();
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery', 'headroom', 'headroom-jquery'], function($, Headroom) {
|
||||||
|
|
||||||
|
// Manages the top navigation bar (hides it when the user starts scrolling down on the
|
||||||
|
// mobile).
|
||||||
|
window.Headroom = Headroom; // work around buggy module loading?
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#documenter .docs-navbar').headroom({
|
||||||
|
"tolerance": {"up": 10, "down": 10},
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery'], function($) {
|
||||||
|
|
||||||
|
// Modal settings dialog
|
||||||
|
$(document).ready(function() {
|
||||||
|
var settings = $('#documenter-settings');
|
||||||
|
$('#documenter-settings-button').click(function(){
|
||||||
|
settings.toggleClass('is-active');
|
||||||
|
});
|
||||||
|
// Close the dialog if X is clicked
|
||||||
|
$('#documenter-settings button.delete').click(function(){
|
||||||
|
settings.removeClass('is-active');
|
||||||
|
});
|
||||||
|
// Close dialog if ESC is pressed
|
||||||
|
$(document).keyup(function(e) {
|
||||||
|
if (e.keyCode == 27) settings.removeClass('is-active');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery'], function($) {
|
||||||
|
|
||||||
|
// Manages the showing and hiding of the sidebar.
|
||||||
|
$(document).ready(function() {
|
||||||
|
var sidebar = $("#documenter > .docs-sidebar");
|
||||||
|
var sidebar_button = $("#documenter-sidebar-button")
|
||||||
|
sidebar_button.click(function(ev) {
|
||||||
|
ev.preventDefault();
|
||||||
|
sidebar.toggleClass('visible');
|
||||||
|
if (sidebar.hasClass('visible')) {
|
||||||
|
// Makes sure that the current menu item is visible in the sidebar.
|
||||||
|
$("#documenter .docs-menu a.is-active").focus();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
$("#documenter > .docs-main").bind('click', function(ev) {
|
||||||
|
if ($(ev.target).is(sidebar_button)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if (sidebar.hasClass('visible')) {
|
||||||
|
sidebar.removeClass('visible');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
// Resizes the package name / sitename in the sidebar if it is too wide.
|
||||||
|
// Inspired by: https://github.com/davatron5000/FitText.js
|
||||||
|
$(document).ready(function() {
|
||||||
|
e = $("#documenter .docs-autofit");
|
||||||
|
function resize() {
|
||||||
|
var L = parseInt(e.css('max-width'), 10);
|
||||||
|
var L0 = e.width();
|
||||||
|
if(L0 > L) {
|
||||||
|
var h0 = parseInt(e.css('font-size'), 10);
|
||||||
|
e.css('font-size', L * h0 / L0);
|
||||||
|
// TODO: make sure it survives resizes?
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// call once and then register events
|
||||||
|
resize();
|
||||||
|
$(window).resize(resize);
|
||||||
|
$(window).on('orientationchange', resize);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Scroll the navigation bar to the currently selected menu item
|
||||||
|
$(document).ready(function() {
|
||||||
|
var sidebar = $("#documenter .docs-menu").get(0);
|
||||||
|
var active = $("#documenter .docs-menu .is-active").get(0);
|
||||||
|
if(typeof active !== 'undefined') {
|
||||||
|
sidebar.scrollTop = active.offsetTop - sidebar.offsetTop - 15;
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery'], function($) {
|
||||||
|
|
||||||
|
function set_theme(theme) {
|
||||||
|
var active = null;
|
||||||
|
var disabled = [];
|
||||||
|
for (var i = 0; i < document.styleSheets.length; i++) {
|
||||||
|
var ss = document.styleSheets[i];
|
||||||
|
var themename = ss.ownerNode.getAttribute("data-theme-name");
|
||||||
|
if(themename === null) continue; // ignore non-theme stylesheets
|
||||||
|
// Find the active theme
|
||||||
|
if(themename === theme) active = ss;
|
||||||
|
else disabled.push(ss);
|
||||||
|
}
|
||||||
|
if(active !== null) {
|
||||||
|
active.disabled = false;
|
||||||
|
if(active.ownerNode.getAttribute("data-theme-primary") === null) {
|
||||||
|
document.getElementsByTagName('html')[0].className = "theme--" + theme;
|
||||||
|
} else {
|
||||||
|
document.getElementsByTagName('html')[0].className = "";
|
||||||
|
}
|
||||||
|
disabled.forEach(function(ss){
|
||||||
|
ss.disabled = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// Store the theme in localStorage
|
||||||
|
if(typeof(window.localStorage) !== "undefined") {
|
||||||
|
window.localStorage.setItem("documenter-theme", theme);
|
||||||
|
} else {
|
||||||
|
console.error("Browser does not support window.localStorage");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Theme picker setup
|
||||||
|
$(document).ready(function() {
|
||||||
|
// onchange callback
|
||||||
|
$('#documenter-themepicker').change(function themepick_callback(ev){
|
||||||
|
var themename = $('#documenter-themepicker option:selected').attr('value');
|
||||||
|
set_theme(themename);
|
||||||
|
});
|
||||||
|
|
||||||
|
// Make sure that the themepicker displays the correct theme when the theme is retrieved
|
||||||
|
// from localStorage
|
||||||
|
if(typeof(window.localStorage) !== "undefined") {
|
||||||
|
var theme = window.localStorage.getItem("documenter-theme");
|
||||||
|
if(theme !== null) {
|
||||||
|
$('#documenter-themepicker option').each(function(i,e) {
|
||||||
|
e.selected = (e.value === theme);
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
$('#documenter-themepicker option').each(function(i,e) {
|
||||||
|
e.selected = $("html").hasClass(`theme--${e.value}`);
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery'], function($) {
|
||||||
|
|
||||||
|
// update the version selector with info from the siteinfo.js and ../versions.js files
|
||||||
|
$(document).ready(function() {
|
||||||
|
// If the version selector is disabled with DOCUMENTER_VERSION_SELECTOR_DISABLED in the
|
||||||
|
// siteinfo.js file, we just return immediately and not display the version selector.
|
||||||
|
if (typeof DOCUMENTER_VERSION_SELECTOR_DISABLED === 'boolean' && DOCUMENTER_VERSION_SELECTOR_DISABLED) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
var version_selector = $("#documenter .docs-version-selector");
|
||||||
|
var version_selector_select = $("#documenter .docs-version-selector select");
|
||||||
|
|
||||||
|
version_selector_select.change(function(x) {
|
||||||
|
target_href = version_selector_select.children("option:selected").get(0).value;
|
||||||
|
window.location.href = target_href;
|
||||||
|
});
|
||||||
|
|
||||||
|
// add the current version to the selector based on siteinfo.js, but only if the selector is empty
|
||||||
|
if (typeof DOCUMENTER_CURRENT_VERSION !== 'undefined' && $('#version-selector > option').length == 0) {
|
||||||
|
var option = $("<option value='#' selected='selected'>" + DOCUMENTER_CURRENT_VERSION + "</option>");
|
||||||
|
version_selector_select.append(option);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof DOC_VERSIONS !== 'undefined') {
|
||||||
|
var existing_versions = version_selector_select.children("option");
|
||||||
|
var existing_versions_texts = existing_versions.map(function(i,x){return x.text});
|
||||||
|
DOC_VERSIONS.forEach(function(each) {
|
||||||
|
var version_url = documenterBaseURL + "/../" + each;
|
||||||
|
var existing_id = $.inArray(each, existing_versions_texts);
|
||||||
|
// if not already in the version selector, add it as a new option,
|
||||||
|
// otherwise update the old option with the URL and enable it
|
||||||
|
if (existing_id == -1) {
|
||||||
|
var option = $("<option value='" + version_url + "'>" + each + "</option>");
|
||||||
|
version_selector_select.append(option);
|
||||||
|
} else {
|
||||||
|
var option = existing_versions[existing_id];
|
||||||
|
option.value = version_url;
|
||||||
|
option.disabled = false;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// only show the version selector if the selector has been populated
|
||||||
|
if (version_selector_select.children("option").length > 0) {
|
||||||
|
version_selector.toggleClass("visible");
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB |
Before Width: | Height: | Size: 586 KiB After Width: | Height: | Size: 586 KiB |
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
@ -0,0 +1,267 @@
|
|||||||
|
// Generated by Documenter.jl
|
||||||
|
requirejs.config({
|
||||||
|
paths: {
|
||||||
|
'lunr': 'https://cdnjs.cloudflare.com/ajax/libs/lunr.js/2.3.9/lunr.min',
|
||||||
|
'lodash': 'https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min',
|
||||||
|
'jquery': 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min',
|
||||||
|
}
|
||||||
|
});
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
require(['jquery', 'lunr', 'lodash'], function($, lunr, _) {
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
// parseUri 1.2.2
|
||||||
|
// (c) Steven Levithan <stevenlevithan.com>
|
||||||
|
// MIT License
|
||||||
|
function parseUri (str) {
|
||||||
|
var o = parseUri.options,
|
||||||
|
m = o.parser[o.strictMode ? "strict" : "loose"].exec(str),
|
||||||
|
uri = {},
|
||||||
|
i = 14;
|
||||||
|
|
||||||
|
while (i--) uri[o.key[i]] = m[i] || "";
|
||||||
|
|
||||||
|
uri[o.q.name] = {};
|
||||||
|
uri[o.key[12]].replace(o.q.parser, function ($0, $1, $2) {
|
||||||
|
if ($1) uri[o.q.name][$1] = $2;
|
||||||
|
});
|
||||||
|
|
||||||
|
return uri;
|
||||||
|
};
|
||||||
|
parseUri.options = {
|
||||||
|
strictMode: false,
|
||||||
|
key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],
|
||||||
|
q: {
|
||||||
|
name: "queryKey",
|
||||||
|
parser: /(?:^|&)([^&=]*)=?([^&]*)/g
|
||||||
|
},
|
||||||
|
parser: {
|
||||||
|
strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,
|
||||||
|
loose: /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
$("#search-form").submit(function(e) {
|
||||||
|
e.preventDefault()
|
||||||
|
})
|
||||||
|
|
||||||
|
// list below is the lunr 2.1.3 list minus the intersect with names(Base)
|
||||||
|
// (all, any, get, in, is, only, which) and (do, else, for, let, where, while, with)
|
||||||
|
// ideally we'd just filter the original list but it's not available as a variable
|
||||||
|
lunr.stopWordFilter = lunr.generateStopWordFilter([
|
||||||
|
'a',
|
||||||
|
'able',
|
||||||
|
'about',
|
||||||
|
'across',
|
||||||
|
'after',
|
||||||
|
'almost',
|
||||||
|
'also',
|
||||||
|
'am',
|
||||||
|
'among',
|
||||||
|
'an',
|
||||||
|
'and',
|
||||||
|
'are',
|
||||||
|
'as',
|
||||||
|
'at',
|
||||||
|
'be',
|
||||||
|
'because',
|
||||||
|
'been',
|
||||||
|
'but',
|
||||||
|
'by',
|
||||||
|
'can',
|
||||||
|
'cannot',
|
||||||
|
'could',
|
||||||
|
'dear',
|
||||||
|
'did',
|
||||||
|
'does',
|
||||||
|
'either',
|
||||||
|
'ever',
|
||||||
|
'every',
|
||||||
|
'from',
|
||||||
|
'got',
|
||||||
|
'had',
|
||||||
|
'has',
|
||||||
|
'have',
|
||||||
|
'he',
|
||||||
|
'her',
|
||||||
|
'hers',
|
||||||
|
'him',
|
||||||
|
'his',
|
||||||
|
'how',
|
||||||
|
'however',
|
||||||
|
'i',
|
||||||
|
'if',
|
||||||
|
'into',
|
||||||
|
'it',
|
||||||
|
'its',
|
||||||
|
'just',
|
||||||
|
'least',
|
||||||
|
'like',
|
||||||
|
'likely',
|
||||||
|
'may',
|
||||||
|
'me',
|
||||||
|
'might',
|
||||||
|
'most',
|
||||||
|
'must',
|
||||||
|
'my',
|
||||||
|
'neither',
|
||||||
|
'no',
|
||||||
|
'nor',
|
||||||
|
'not',
|
||||||
|
'of',
|
||||||
|
'off',
|
||||||
|
'often',
|
||||||
|
'on',
|
||||||
|
'or',
|
||||||
|
'other',
|
||||||
|
'our',
|
||||||
|
'own',
|
||||||
|
'rather',
|
||||||
|
'said',
|
||||||
|
'say',
|
||||||
|
'says',
|
||||||
|
'she',
|
||||||
|
'should',
|
||||||
|
'since',
|
||||||
|
'so',
|
||||||
|
'some',
|
||||||
|
'than',
|
||||||
|
'that',
|
||||||
|
'the',
|
||||||
|
'their',
|
||||||
|
'them',
|
||||||
|
'then',
|
||||||
|
'there',
|
||||||
|
'these',
|
||||||
|
'they',
|
||||||
|
'this',
|
||||||
|
'tis',
|
||||||
|
'to',
|
||||||
|
'too',
|
||||||
|
'twas',
|
||||||
|
'us',
|
||||||
|
'wants',
|
||||||
|
'was',
|
||||||
|
'we',
|
||||||
|
'were',
|
||||||
|
'what',
|
||||||
|
'when',
|
||||||
|
'who',
|
||||||
|
'whom',
|
||||||
|
'why',
|
||||||
|
'will',
|
||||||
|
'would',
|
||||||
|
'yet',
|
||||||
|
'you',
|
||||||
|
'your'
|
||||||
|
])
|
||||||
|
|
||||||
|
// add . as a separator, because otherwise "title": "Documenter.Anchors.add!"
|
||||||
|
// would not find anything if searching for "add!", only for the entire qualification
|
||||||
|
lunr.tokenizer.separator = /[\s\-\.]+/
|
||||||
|
|
||||||
|
// custom trimmer that doesn't strip @ and !, which are used in julia macro and function names
|
||||||
|
lunr.trimmer = function (token) {
|
||||||
|
return token.update(function (s) {
|
||||||
|
return s.replace(/^[^a-zA-Z0-9@!]+/, '').replace(/[^a-zA-Z0-9@!]+$/, '')
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
lunr.Pipeline.registerFunction(lunr.stopWordFilter, 'juliaStopWordFilter')
|
||||||
|
lunr.Pipeline.registerFunction(lunr.trimmer, 'juliaTrimmer')
|
||||||
|
|
||||||
|
var index = lunr(function () {
|
||||||
|
this.ref('location')
|
||||||
|
this.field('title',{boost: 100})
|
||||||
|
this.field('text')
|
||||||
|
documenterSearchIndex['docs'].forEach(function(e) {
|
||||||
|
this.add(e)
|
||||||
|
}, this)
|
||||||
|
})
|
||||||
|
var store = {}
|
||||||
|
|
||||||
|
documenterSearchIndex['docs'].forEach(function(e) {
|
||||||
|
store[e.location] = {title: e.title, category: e.category, page: e.page}
|
||||||
|
})
|
||||||
|
|
||||||
|
$(function(){
|
||||||
|
searchresults = $('#documenter-search-results');
|
||||||
|
searchinfo = $('#documenter-search-info');
|
||||||
|
searchbox = $('#documenter-search-query');
|
||||||
|
searchform = $('.docs-search');
|
||||||
|
sidebar = $('.docs-sidebar');
|
||||||
|
function update_search(querystring) {
|
||||||
|
tokens = lunr.tokenizer(querystring)
|
||||||
|
results = index.query(function (q) {
|
||||||
|
tokens.forEach(function (t) {
|
||||||
|
q.term(t.toString(), {
|
||||||
|
fields: ["title"],
|
||||||
|
boost: 100,
|
||||||
|
usePipeline: true,
|
||||||
|
editDistance: 0,
|
||||||
|
wildcard: lunr.Query.wildcard.NONE
|
||||||
|
})
|
||||||
|
q.term(t.toString(), {
|
||||||
|
fields: ["title"],
|
||||||
|
boost: 10,
|
||||||
|
usePipeline: true,
|
||||||
|
editDistance: 2,
|
||||||
|
wildcard: lunr.Query.wildcard.NONE
|
||||||
|
})
|
||||||
|
q.term(t.toString(), {
|
||||||
|
fields: ["text"],
|
||||||
|
boost: 1,
|
||||||
|
usePipeline: true,
|
||||||
|
editDistance: 0,
|
||||||
|
wildcard: lunr.Query.wildcard.NONE
|
||||||
|
})
|
||||||
|
})
|
||||||
|
})
|
||||||
|
searchinfo.text("Number of results: " + results.length)
|
||||||
|
searchresults.empty()
|
||||||
|
results.forEach(function(result) {
|
||||||
|
data = store[result.ref]
|
||||||
|
link = $('<a class="docs-label">'+data.title+'</a>')
|
||||||
|
link.attr('href', documenterBaseURL+'/'+result.ref)
|
||||||
|
if (data.category != "page"){
|
||||||
|
cat = $('<span class="docs-category">('+data.category+', '+data.page+')</span>')
|
||||||
|
} else {
|
||||||
|
cat = $('<span class="docs-category">('+data.category+')</span>')
|
||||||
|
}
|
||||||
|
li = $('<li>').append(link).append(" ").append(cat)
|
||||||
|
searchresults.append(li)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
function update_search_box() {
|
||||||
|
querystring = searchbox.val()
|
||||||
|
update_search(querystring)
|
||||||
|
}
|
||||||
|
|
||||||
|
searchbox.keyup(_.debounce(update_search_box, 250))
|
||||||
|
searchbox.change(update_search_box)
|
||||||
|
|
||||||
|
// Disable enter-key form submission for the searchbox on the search page
|
||||||
|
// and just re-run search rather than refresh the whole page.
|
||||||
|
searchform.keypress(
|
||||||
|
function(event){
|
||||||
|
if (event.which == '13') {
|
||||||
|
if (sidebar.hasClass('visible')) {
|
||||||
|
sidebar.removeClass('visible');
|
||||||
|
}
|
||||||
|
update_search_box();
|
||||||
|
event.preventDefault();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
search_query_uri = parseUri(window.location).queryKey["q"]
|
||||||
|
if(search_query_uri !== undefined) {
|
||||||
|
search_query = decodeURIComponent(search_query_uri.replace(/\+/g, '%20'))
|
||||||
|
searchbox.val(search_query)
|
||||||
|
}
|
||||||
|
update_search_box();
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
})
|
@ -0,0 +1,66 @@
|
|||||||
|
// Small function to quickly swap out themes. Gets put into the <head> tag..
|
||||||
|
function set_theme_from_local_storage() {
|
||||||
|
// Intialize the theme to null, which means default
|
||||||
|
var theme = null;
|
||||||
|
// If the browser supports the localstorage and is not disabled then try to get the
|
||||||
|
// documenter theme
|
||||||
|
if(window.localStorage != null) {
|
||||||
|
// Get the user-picked theme from localStorage. May be `null`, which means the default
|
||||||
|
// theme.
|
||||||
|
theme = window.localStorage.getItem("documenter-theme");
|
||||||
|
}
|
||||||
|
// Check if the browser supports user color preference
|
||||||
|
var darkPreference = false;
|
||||||
|
// Check if the users preference is for dark color scheme
|
||||||
|
if(window.matchMedia('(prefers-color-scheme: dark)').matches === true) {
|
||||||
|
darkPreference = true;
|
||||||
|
}
|
||||||
|
// Initialize a few variables for the loop:
|
||||||
|
//
|
||||||
|
// - active: will contain the index of the theme that should be active. Note that there
|
||||||
|
// is no guarantee that localStorage contains sane values. If `active` stays `null`
|
||||||
|
// we either could not find the theme or it is the default (primary) theme anyway.
|
||||||
|
// Either way, we then need to stick to the primary theme.
|
||||||
|
//
|
||||||
|
// - disabled: style sheets that should be disabled (i.e. all the theme style sheets
|
||||||
|
// that are not the currently active theme)
|
||||||
|
var active = null; var disabled = []; var darkTheme = null;
|
||||||
|
for (var i = 0; i < document.styleSheets.length; i++) {
|
||||||
|
var ss = document.styleSheets[i];
|
||||||
|
// The <link> tag of each style sheet is expected to have a data-theme-name attribute
|
||||||
|
// which must contain the name of the theme. The names in localStorage much match this.
|
||||||
|
var themename = ss.ownerNode.getAttribute("data-theme-name");
|
||||||
|
// attribute not set => non-theme stylesheet => ignore
|
||||||
|
if(themename === null) continue;
|
||||||
|
// To distinguish the default (primary) theme, it needs to have the data-theme-primary
|
||||||
|
// attribute set.
|
||||||
|
var isprimary = (ss.ownerNode.getAttribute("data-theme-primary") !== null);
|
||||||
|
// Check if the theme is primary dark theme
|
||||||
|
var isDarkTheme = (ss.ownerNode.getAttribute("data-theme-primary-dark") !== null);
|
||||||
|
// If ss is for dark theme then set the value of darkTheme to the name of the theme
|
||||||
|
if(isDarkTheme) darkTheme = themename;
|
||||||
|
// If we find a matching theme (and it's not the default), we'll set active to non-null
|
||||||
|
if(themename === theme) active = i;
|
||||||
|
// Store the style sheets of inactive themes so that we could disable them
|
||||||
|
if(themename !== theme) disabled.push(ss);
|
||||||
|
}
|
||||||
|
if(active !== null) {
|
||||||
|
// If we did find an active theme, we'll (1) add the theme--$(theme) class to <html>
|
||||||
|
document.getElementsByTagName('html')[0].className = "theme--" + theme;
|
||||||
|
// and (2) disable all the other theme stylesheets
|
||||||
|
disabled.forEach(function(ss){
|
||||||
|
ss.disabled = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else if(darkTheme !== null && darkPreference === true) {
|
||||||
|
// If we did find an active theme, we'll (1) add the theme--$(theme) class to <html>
|
||||||
|
document.getElementsByTagName('html')[0].className = "theme--" + darkTheme;
|
||||||
|
// and (2) disable all the other theme stylesheets
|
||||||
|
disabled.forEach(function(ss){
|
||||||
|
if (ss.ownerNode.getAttribute("data-theme-name") !== darkTheme) {
|
||||||
|
ss.disabled = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
set_theme_from_local_storage();
|
@ -0,0 +1,49 @@
|
|||||||
|
function maybeAddWarning () {
|
||||||
|
// DOCUMENTER_NEWEST is defined in versions.js, DOCUMENTER_CURRENT_VERSION and DOCUMENTER_STABLE
|
||||||
|
// in siteinfo.js.
|
||||||
|
// If either of these are undefined something went horribly wrong, so we abort.
|
||||||
|
if (
|
||||||
|
window.DOCUMENTER_NEWEST === undefined ||
|
||||||
|
window.DOCUMENTER_CURRENT_VERSION === undefined ||
|
||||||
|
window.DOCUMENTER_STABLE === undefined
|
||||||
|
) {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
|
||||||
|
// Current version is not a version number, so we can't tell if it's the newest version. Abort.
|
||||||
|
if (!/v(\d+\.)*\d+/.test(window.DOCUMENTER_CURRENT_VERSION)) {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
|
||||||
|
// Current version is newest version, so no need to add a warning.
|
||||||
|
if (window.DOCUMENTER_NEWEST === window.DOCUMENTER_CURRENT_VERSION) {
|
||||||
|
return
|
||||||
|
};
|
||||||
|
|
||||||
|
// Add a noindex meta tag (unless one exists) so that search engines don't index this version of the docs.
|
||||||
|
if (document.body.querySelector('meta[name="robots"]') === null) {
|
||||||
|
const meta = document.createElement('meta');
|
||||||
|
meta.name = 'robots';
|
||||||
|
meta.content = 'noindex';
|
||||||
|
|
||||||
|
document.getElementsByTagName('head')[0].appendChild(meta);
|
||||||
|
};
|
||||||
|
|
||||||
|
const div = document.createElement('div');
|
||||||
|
div.classList.add('outdated-warning-overlay');
|
||||||
|
const closer = document.createElement('button');
|
||||||
|
closer.classList.add('outdated-warning-closer', 'delete');
|
||||||
|
closer.addEventListener('click', function () {
|
||||||
|
document.body.removeChild(div);
|
||||||
|
});
|
||||||
|
const href = window.documenterBaseURL + '/../' + window.DOCUMENTER_STABLE;
|
||||||
|
div.innerHTML = 'This documentation is not for the latest stable release, but for either the development version or an older release.<br><a href="' + href + '">Click here to go to the documentation for the latest stable release.</a>';
|
||||||
|
div.appendChild(closer);
|
||||||
|
document.body.appendChild(div);
|
||||||
|
};
|
||||||
|
|
||||||
|
if (document.readyState === 'loading') {
|
||||||
|
document.addEventListener('DOMContentLoaded', maybeAddWarning);
|
||||||
|
} else {
|
||||||
|
maybeAddWarning();
|
||||||
|
};
|
@ -1,289 +0,0 @@
|
|||||||
html {
|
|
||||||
scroll-padding-top: 70px;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
padding-top: 70px;
|
|
||||||
}
|
|
||||||
|
|
||||||
p > img {
|
|
||||||
max-width: 100%;
|
|
||||||
height: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul.nav li.first-level {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul.nav li.third-level {
|
|
||||||
padding-left: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.col-md-3 {
|
|
||||||
padding-left: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.col-md-9 {
|
|
||||||
padding-bottom: 100px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.source-links {
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Side navigation
|
|
||||||
*
|
|
||||||
* Scrollspy and affixed enhanced navigation to highlight sections and secondary
|
|
||||||
* sections of docs content.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* By default it's not affixed in mobile views, so undo that */
|
|
||||||
.bs-sidebar.affix {
|
|
||||||
position: static;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bs-sidebar.well {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* First level of nav */
|
|
||||||
.bs-sidenav {
|
|
||||||
margin-top: 30px;
|
|
||||||
margin-bottom: 30px;
|
|
||||||
padding-top: 10px;
|
|
||||||
padding-bottom: 10px;
|
|
||||||
border-radius: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* All levels of nav */
|
|
||||||
.bs-sidebar .nav > li > a {
|
|
||||||
display: block;
|
|
||||||
padding: 5px 20px;
|
|
||||||
z-index: 1;
|
|
||||||
}
|
|
||||||
.bs-sidebar .nav > li > a:hover,
|
|
||||||
.bs-sidebar .nav > li > a:focus {
|
|
||||||
text-decoration: none;
|
|
||||||
border-right: 1px solid;
|
|
||||||
}
|
|
||||||
.bs-sidebar .nav > .active > a,
|
|
||||||
.bs-sidebar .nav > .active:hover > a,
|
|
||||||
.bs-sidebar .nav > .active:focus > a {
|
|
||||||
font-weight: bold;
|
|
||||||
background-color: transparent;
|
|
||||||
border-right: 1px solid;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nav: second level (shown on .active) */
|
|
||||||
.bs-sidebar .nav .nav {
|
|
||||||
display: none; /* Hide by default, but at >768px, show it */
|
|
||||||
margin-bottom: 8px;
|
|
||||||
}
|
|
||||||
.bs-sidebar .nav .nav > li > a {
|
|
||||||
padding-top: 3px;
|
|
||||||
padding-bottom: 3px;
|
|
||||||
padding-left: 30px;
|
|
||||||
font-size: 90%;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Show and affix the side nav when space allows it */
|
|
||||||
@media (min-width: 992px) {
|
|
||||||
.bs-sidebar .nav > .active > ul {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
/* Widen the fixed sidebar */
|
|
||||||
.bs-sidebar.affix,
|
|
||||||
.bs-sidebar.affix-bottom {
|
|
||||||
width: 213px;
|
|
||||||
}
|
|
||||||
.bs-sidebar.affix {
|
|
||||||
position: fixed; /* Undo the static from mobile first approach */
|
|
||||||
top: 80px;
|
|
||||||
max-height: calc(100% - 180px);
|
|
||||||
overflow-y: auto;
|
|
||||||
}
|
|
||||||
.bs-sidebar.affix-bottom {
|
|
||||||
position: absolute; /* Undo the static from mobile first approach */
|
|
||||||
}
|
|
||||||
.bs-sidebar.affix-bottom .bs-sidenav,
|
|
||||||
.bs-sidebar.affix .bs-sidenav {
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media (min-width: 1200px) {
|
|
||||||
/* Widen the fixed sidebar again */
|
|
||||||
.bs-sidebar.affix-bottom,
|
|
||||||
.bs-sidebar.affix {
|
|
||||||
width: 263px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Added to support >2 level nav in drop down */
|
|
||||||
|
|
||||||
.dropdown-submenu {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu>.dropdown-menu {
|
|
||||||
top: 0;
|
|
||||||
left: 100%;
|
|
||||||
margin-top: 0px;
|
|
||||||
margin-left: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu:hover>.dropdown-menu {
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu>a:after {
|
|
||||||
display: block;
|
|
||||||
content: " ";
|
|
||||||
float: right;
|
|
||||||
width: 0;
|
|
||||||
height: 0;
|
|
||||||
border-color: transparent;
|
|
||||||
border-style: solid;
|
|
||||||
border-width: 5px 0 5px 5px;
|
|
||||||
border-left-color: #ccc;
|
|
||||||
margin-top: 5px;
|
|
||||||
margin-right: -10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu:hover>a:after {
|
|
||||||
border-left-color: #fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu.pull-left {
|
|
||||||
float: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-submenu.pull-left>.dropdown-menu {
|
|
||||||
left: -100%;
|
|
||||||
margin-left: 00px;
|
|
||||||
}
|
|
||||||
/* Start Bootstrap Callouts CSS Source by Chris Pratt (https://codepen.io/chrisdpratt/pen/IAymB) MIT License*/
|
|
||||||
.bs-callout {
|
|
||||||
padding: 20px;
|
|
||||||
margin: 20px 0;
|
|
||||||
border: 1px solid #eee;
|
|
||||||
border-left-width: 5px;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: #FCFDFF;
|
|
||||||
}
|
|
||||||
.bs-callout h4 {
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
.bs-callout p:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.bs-callout code {
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
.bs-callout+.bs-callout {
|
|
||||||
margin-top: -5px;
|
|
||||||
}
|
|
||||||
.bs-callout-default {
|
|
||||||
border-left-color: #FA023C; /*modified from upstream default by Christopher Simpkins*/
|
|
||||||
}
|
|
||||||
.bs-callout-default h4 {
|
|
||||||
color: #FA023C; /*modified from upstream default by Christopher Simpkins*/
|
|
||||||
}
|
|
||||||
.bs-callout-primary {
|
|
||||||
border-left-color: #428bca;
|
|
||||||
}
|
|
||||||
.bs-callout-primary h4 {
|
|
||||||
color: #428bca;
|
|
||||||
}
|
|
||||||
.bs-callout-success {
|
|
||||||
border-left-color: #5cb85c;
|
|
||||||
}
|
|
||||||
.bs-callout-success h4 {
|
|
||||||
color: #5cb85c;
|
|
||||||
}
|
|
||||||
.bs-callout-danger {
|
|
||||||
border-left-color: #d9534f;
|
|
||||||
}
|
|
||||||
.bs-callout-danger h4 {
|
|
||||||
color: #d9534f;
|
|
||||||
}
|
|
||||||
.bs-callout-warning {
|
|
||||||
border-left-color: #f0ad4e;
|
|
||||||
}
|
|
||||||
.bs-callout-warning h4 {
|
|
||||||
color: #f0ad4e;
|
|
||||||
}
|
|
||||||
.bs-callout-info {
|
|
||||||
border-left-color: #5bc0de;
|
|
||||||
}
|
|
||||||
.bs-callout-info h4 {
|
|
||||||
color: #5bc0de;
|
|
||||||
}
|
|
||||||
/* End Bootstrap Callouts CSS Source by Chris Pratt */
|
|
||||||
|
|
||||||
/* Headerlinks */
|
|
||||||
.headerlink {
|
|
||||||
display: none;
|
|
||||||
padding-left: .5em;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1:hover .headerlink, h2:hover .headerlink, h3:hover .headerlink, h4:hover .headerlink, h5:hover .headerlink, h6:hover .headerlink {
|
|
||||||
display: inline-block;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Admonitions */
|
|
||||||
.admonition {
|
|
||||||
padding: 20px;
|
|
||||||
margin: 20px 0;
|
|
||||||
border: 1px solid #eee;
|
|
||||||
border-left-width: 5px;
|
|
||||||
border-radius: 3px;
|
|
||||||
background-color: #FCFDFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition p:last-child {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.admonition code {
|
|
||||||
border-radius: 3px;
|
|
||||||
}
|
|
||||||
.admonition+.admonition {
|
|
||||||
margin-top: -5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition.note { /* csslint allow: adjoining-classes */
|
|
||||||
border-left-color: #428bca;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition.warning { /* csslint allow: adjoining-classes */
|
|
||||||
border-left-color: #f0ad4e;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition.danger { /* csslint allow: adjoining-classes */
|
|
||||||
border-left-color: #d9534f;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition-title {
|
|
||||||
font-size: 19px;
|
|
||||||
font-style: normal;
|
|
||||||
font-weight: 400;
|
|
||||||
margin-top: 0;
|
|
||||||
margin-bottom: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition.note > .admonition-title {
|
|
||||||
color: #428bca;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition.warning > .admonition-title {
|
|
||||||
color: #f0ad4e;
|
|
||||||
}
|
|
||||||
|
|
||||||
.admonition.danger > .admonition-title {
|
|
||||||
color: #d9534f;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
html{scroll-padding-top:70px}body{padding-top:70px}p>img{max-width:100%;height:auto}ul.nav li.first-level{font-weight:bold}ul.nav li.third-level{padding-left:12px}div.col-md-3{padding-left:0}div.col-md-9{padding-bottom:100px}div.source-links{float:right}.bs-sidebar.affix{position:static}.bs-sidebar.well{padding:0}.bs-sidenav{margin-top:30px;margin-bottom:30px;padding-top:10px;padding-bottom:10px;border-radius:5px}.bs-sidebar .nav>li>a{display:block;padding:5px 20px;z-index:1}.bs-sidebar .nav>li>a:hover,.bs-sidebar .nav>li>a:focus{text-decoration:none;border-right:1px solid}.bs-sidebar .nav>.active>a,.bs-sidebar .nav>.active:hover>a,.bs-sidebar .nav>.active:focus>a{font-weight:bold;background-color:transparent;border-right:1px solid}.bs-sidebar .nav .nav{display:none;margin-bottom:8px}.bs-sidebar .nav .nav>li>a{padding-top:3px;padding-bottom:3px;padding-left:30px;font-size:90%}@media(min-width:992px){.bs-sidebar .nav>.active>ul{display:block}.bs-sidebar.affix,.bs-sidebar.affix-bottom{width:213px}.bs-sidebar.affix{position:fixed;top:80px;max-height:calc(100% - 180px);overflow-y:auto}.bs-sidebar.affix-bottom{position:absolute}.bs-sidebar.affix-bottom .bs-sidenav,.bs-sidebar.affix .bs-sidenav{margin-top:0;margin-bottom:0}}@media(min-width:1200px){.bs-sidebar.affix-bottom,.bs-sidebar.affix{width:263px}}.dropdown-submenu{position:relative}.dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:0;margin-left:0}.dropdown-submenu:hover>.dropdown-menu{display:block}.dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#ccc;margin-top:5px;margin-right:-10px}.dropdown-submenu:hover>a:after{border-left-color:#fff}.dropdown-submenu.pull-left{float:none}.dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:00px}.bs-callout{padding:20px;margin:20px 0;border:1px solid #eee;border-left-width:5px;border-radius:3px;background-color:#fcfdff}.bs-callout h4{font-style:normal;font-weight:400;margin-top:0;margin-bottom:5px}.bs-callout p:last-child{margin-bottom:0}.bs-callout code{border-radius:3px}.bs-callout+.bs-callout{margin-top:-5px}.bs-callout-default{border-left-color:#fa023c}.bs-callout-default h4{color:#fa023c}.bs-callout-primary{border-left-color:#428bca}.bs-callout-primary h4{color:#428bca}.bs-callout-success{border-left-color:#5cb85c}.bs-callout-success h4{color:#5cb85c}.bs-callout-danger{border-left-color:#d9534f}.bs-callout-danger h4{color:#d9534f}.bs-callout-warning{border-left-color:#f0ad4e}.bs-callout-warning h4{color:#f0ad4e}.bs-callout-info{border-left-color:#5bc0de}.bs-callout-info h4{color:#5bc0de}.headerlink{display:none;padding-left:.5em}h1:hover .headerlink,h2:hover .headerlink,h3:hover .headerlink,h4:hover .headerlink,h5:hover .headerlink,h6:hover .headerlink{display:inline-block}.admonition{padding:20px;margin:20px 0;border:1px solid #eee;border-left-width:5px;border-radius:3px;background-color:#fcfdff}.admonition p:last-child{margin-bottom:0}.admonition code{border-radius:3px}.admonition+.admonition{margin-top:-5px}.admonition.note{border-left-color:#428bca}.admonition.warning{border-left-color:#f0ad4e}.admonition.danger{border-left-color:#d9534f}.admonition-title{font-size:19px;font-style:normal;font-weight:400;margin-top:0;margin-bottom:5px}.admonition.note>.admonition-title{color:#428bca}.admonition.warning>.admonition-title{color:#f0ad4e}.admonition.danger>.admonition-title{color:#d9534f}
|
|
@ -1,88 +0,0 @@
|
|||||||
/*
|
|
||||||
Cinder Theme for MkDocs | Copyright 2015 Christopher Simpkins | MIT License
|
|
||||||
*/
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family:"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 16px;
|
|
||||||
line-height: 1.7;
|
|
||||||
background-color: #FFF;
|
|
||||||
color: #343838;
|
|
||||||
}
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
font-family:'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
||||||
color: #222;
|
|
||||||
}
|
|
||||||
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small, .h1 small, .h2 small, .h3 small, .h4 small, .h5 small, .h6 small, h1 .small, h2 .small, h3 .small, h4 .small, h5 .small, h6 .small, .h1 .small, .h2 .small, .h3 .small, .h4 .small, .h5 .small, .h6 .small {
|
|
||||||
color: #B1B7B9;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {
|
|
||||||
margin-top: 35px;
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2 {
|
|
||||||
font-weight: 700;
|
|
||||||
}
|
|
||||||
h4 {
|
|
||||||
font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
||||||
font-weight: 300;
|
|
||||||
margin-top: 20px;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
h5 {
|
|
||||||
font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
|
||||||
font-weight: 300;
|
|
||||||
font-variant: small-caps;
|
|
||||||
}
|
|
||||||
pre, code {
|
|
||||||
background-color: #FCFDFF;
|
|
||||||
}
|
|
||||||
pre>code {
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
pre {
|
|
||||||
margin-top: 25px;
|
|
||||||
margin-bottom: 25px;
|
|
||||||
}
|
|
||||||
.lead {
|
|
||||||
font-family:"Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
font-weight: 400;
|
|
||||||
line-height: 1.4;
|
|
||||||
letter-spacing: 0.0312em;
|
|
||||||
color: #B1B7B9;
|
|
||||||
}
|
|
||||||
.navbar-default {
|
|
||||||
background-color: #343838;
|
|
||||||
border-bottom: 8px #EBF2F2 solid;
|
|
||||||
}
|
|
||||||
.bs-sidenav {
|
|
||||||
background-image: url("../img/grid11.png");
|
|
||||||
background-repeat: repeat;
|
|
||||||
font-family: Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;
|
|
||||||
font-size: 13px;
|
|
||||||
}
|
|
||||||
.well {
|
|
||||||
background-color: #FCFDFF;
|
|
||||||
}
|
|
||||||
.btn-default {
|
|
||||||
background-color:#FCFDFF;
|
|
||||||
}
|
|
||||||
.table-striped > tbody > tr:nth-child(2n+1) > td, .table-striped > tbody > tr:nth-child(2n+1) > th {
|
|
||||||
background-color: #FCFDFF;
|
|
||||||
}
|
|
||||||
#mkdocs-search-query:focus {
|
|
||||||
outline: none;
|
|
||||||
-webkit-box-shadow: none;
|
|
||||||
box-shadow: none;
|
|
||||||
}
|
|
||||||
#mkdocs-search-query {
|
|
||||||
font-family:"Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
||||||
font-size: 20px;
|
|
||||||
font-weight: 700;
|
|
||||||
color: #343838;
|
|
||||||
height: 45px;
|
|
||||||
}
|
|
||||||
footer > hr {
|
|
||||||
width: 35%;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
body{font-family:"Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:16px;line-height:1.7;background-color:#FFF;color:#343838}h1,h2,h3,h4,h5,h6{font-family:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;color:#222}h1 small,h2 small,h3 small,h4 small,h5 small,h6 small,.h1 small,.h2 small,.h3 small,.h4 small,.h5 small,.h6 small,h1 .small,h2 .small,h3 .small,h4 .small,h5 .small,h6 .small,.h1 .small,.h2 .small,.h3 .small,.h4 .small,.h5 .small,.h6 .small{color:#b1b7b9}h2{margin-top:35px}h1,h2{font-weight:700}h4{font-family:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:300;margin-top:20px;font-style:italic}h5{font-family:'Inter','Helvetica Neue',Helvetica,Arial,sans-serif;font-weight:300;font-variant:small-caps}pre,code{background-color:#fcfdff}pre>code{font-size:13px}pre{margin-top:25px;margin-bottom:25px}.lead{font-family:"Inter","Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:400;line-height:1.4;letter-spacing:.0312em;color:#b1b7b9}.navbar-default{background-color:#343838;border-bottom:8px #ebf2f2 solid}.bs-sidenav{background-image:url("../img/grid11.png");background-repeat:repeat;font-family:Inter,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px}.well{background-color:#fcfdff}.btn-default{background-color:#fcfdff}.table-striped>tbody>tr:nth-child(2n+1)>td,.table-striped>tbody>tr:nth-child(2n+1)>th{background-color:#fcfdff}#mkdocs-search-query:focus{outline:0;-webkit-box-shadow:none;box-shadow:none}#mkdocs-search-query{font-family:"Inter","Helvetica Neue",Helvetica,Arial,sans-serif;font-size:20px;font-weight:700;color:#343838;height:45px}footer>hr{width:35%}
|
|
@ -1,28 +0,0 @@
|
|||||||
.navbar-default {
|
|
||||||
border-bottom: 0px;
|
|
||||||
background-color: #fff;
|
|
||||||
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
|
|
||||||
}
|
|
||||||
|
|
||||||
a, .navbar-default a {
|
|
||||||
color: #06a !important;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.disabled > a {
|
|
||||||
color: #999 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-default a:hover,
|
|
||||||
.navbar-default .active,
|
|
||||||
.active > a {
|
|
||||||
background-color: #f0f0f0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.icon-bar {
|
|
||||||
background-color: #666 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-collapse {
|
|
||||||
border-color: #fff !important;
|
|
||||||
}
|
|
@ -1,99 +0,0 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
.hljs {
|
|
||||||
display: block;
|
|
||||||
overflow-x: auto;
|
|
||||||
padding: 0.5em;
|
|
||||||
color: #333;
|
|
||||||
background: #FCFDFF;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-comment,
|
|
||||||
.hljs-quote {
|
|
||||||
color: #998;
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-keyword,
|
|
||||||
.hljs-selector-tag,
|
|
||||||
.hljs-subst {
|
|
||||||
color: #333;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-number,
|
|
||||||
.hljs-literal,
|
|
||||||
.hljs-variable,
|
|
||||||
.hljs-template-variable,
|
|
||||||
.hljs-tag .hljs-attr {
|
|
||||||
color: #008080;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-string,
|
|
||||||
.hljs-doctag {
|
|
||||||
color: #d14;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-title,
|
|
||||||
.hljs-section,
|
|
||||||
.hljs-selector-id {
|
|
||||||
color: #900;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-subst {
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-type,
|
|
||||||
.hljs-class .hljs-title {
|
|
||||||
color: #458;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-tag,
|
|
||||||
.hljs-name,
|
|
||||||
.hljs-attribute {
|
|
||||||
color: #000080;
|
|
||||||
font-weight: normal;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-regexp,
|
|
||||||
.hljs-link {
|
|
||||||
color: #009926;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-symbol,
|
|
||||||
.hljs-bullet {
|
|
||||||
color: #990073;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-built_in,
|
|
||||||
.hljs-builtin-name {
|
|
||||||
color: #0086b3;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-meta {
|
|
||||||
color: #999;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-deletion {
|
|
||||||
background: #fdd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-addition {
|
|
||||||
background: #dfd;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-emphasis {
|
|
||||||
font-style: italic;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hljs-strong {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
@ -1 +0,0 @@
|
|||||||
.hljs{display:block;overflow-x:auto;padding:.5em;color:#333;background:#fcfdff}.hljs-comment,.hljs-quote{color:#998;font-style:italic}.hljs-keyword,.hljs-selector-tag,.hljs-subst{color:#333;font-weight:bold}.hljs-number,.hljs-literal,.hljs-variable,.hljs-template-variable,.hljs-tag .hljs-attr{color:teal}.hljs-string,.hljs-doctag{color:#d14}.hljs-title,.hljs-section,.hljs-selector-id{color:#900;font-weight:bold}.hljs-subst{font-weight:normal}.hljs-type,.hljs-class .hljs-title{color:#458;font-weight:bold}.hljs-tag,.hljs-name,.hljs-attribute{color:navy;font-weight:normal}.hljs-regexp,.hljs-link{color:#009926}.hljs-symbol,.hljs-bullet{color:#990073}.hljs-built_in,.hljs-builtin-name{color:#0086b3}.hljs-meta{color:#999;font-weight:bold}.hljs-deletion{background:#fdd}.hljs-addition{background:#dfd}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:bold}
|
|
Before Width: | Height: | Size: 197 KiB |
Before Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 251 B |
Before Width: | Height: | Size: 495 B |
Before Width: | Height: | Size: 253 B |
Before Width: | Height: | Size: 260 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 240 B |
Before Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 271 B |
Before Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 266 B |
Before Width: | Height: | Size: 244 B |
Before Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 460 B |
Before Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 457 B |
Before Width: | Height: | Size: 456 B |
@ -1,225 +0,0 @@
|
|||||||
function getSearchTerm() {
|
|
||||||
var sPageURL = window.location.search.substring(1);
|
|
||||||
var sURLVariables = sPageURL.split('&');
|
|
||||||
for (var i = 0; i < sURLVariables.length; i++) {
|
|
||||||
var sParameterName = sURLVariables[i].split('=');
|
|
||||||
if (sParameterName[0] == 'q') {
|
|
||||||
return sParameterName[1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$(document).ready(function() {
|
|
||||||
/**
|
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
* Taken from themes/mkdocs/js/base.js
|
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
var search_term = getSearchTerm(),
|
|
||||||
$search_modal = $('#mkdocs_search_modal'),
|
|
||||||
$keyboard_modal = $('#mkdocs_keyboard_modal');
|
|
||||||
|
|
||||||
if (search_term) {
|
|
||||||
$search_modal.modal();
|
|
||||||
}
|
|
||||||
|
|
||||||
// make sure search input gets autofocus everytime modal opens.
|
|
||||||
$search_modal.on('shown.bs.modal', function() {
|
|
||||||
$search_modal.find('#mkdocs-search-query').focus();
|
|
||||||
});
|
|
||||||
|
|
||||||
// Close search modal when result is selected
|
|
||||||
// The links get added later so listen to parent
|
|
||||||
$('#mkdocs-search-results').click(function(e) {
|
|
||||||
if ($(e.target).is('a')) {
|
|
||||||
$search_modal.modal('hide');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (typeof shortcuts !== 'undefined') {
|
|
||||||
// Populate keyboard modal with proper Keys
|
|
||||||
$keyboard_modal.find('.help.shortcut kbd')[0].innerHTML = keyCodes[shortcuts.help];
|
|
||||||
$keyboard_modal.find('.prev.shortcut kbd')[0].innerHTML = keyCodes[shortcuts.previous];
|
|
||||||
$keyboard_modal.find('.next.shortcut kbd')[0].innerHTML = keyCodes[shortcuts.next];
|
|
||||||
$keyboard_modal.find('.search.shortcut kbd')[0].innerHTML = keyCodes[shortcuts.search];
|
|
||||||
|
|
||||||
// Keyboard navigation
|
|
||||||
document.addEventListener("keydown", function(e) {
|
|
||||||
if ($(e.target).is(':input')) return true;
|
|
||||||
var key = e.which || e.key || window.event && window.event.key;
|
|
||||||
var page;
|
|
||||||
switch (key) {
|
|
||||||
case shortcuts.next:
|
|
||||||
page = $('.navbar a[rel="next"]:first').prop('href');
|
|
||||||
break;
|
|
||||||
case shortcuts.previous:
|
|
||||||
page = $('.navbar a[rel="prev"]:first').prop('href');
|
|
||||||
break;
|
|
||||||
case shortcuts.search:
|
|
||||||
e.preventDefault();
|
|
||||||
$keyboard_modal.modal('hide');
|
|
||||||
$search_modal.modal('show');
|
|
||||||
$search_modal.find('#mkdocs-search-query').focus();
|
|
||||||
break;
|
|
||||||
case shortcuts.help:
|
|
||||||
$search_modal.modal('hide');
|
|
||||||
$keyboard_modal.modal('show');
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (page) {
|
|
||||||
$keyboard_modal.modal('hide');
|
|
||||||
window.location.href = page;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
$('table').addClass('table table-striped table-hover');
|
|
||||||
|
|
||||||
// Improve the scrollspy behaviour when users click on a TOC item.
|
|
||||||
$(".bs-sidenav a").on("click", function() {
|
|
||||||
var clicked = this;
|
|
||||||
setTimeout(function() {
|
|
||||||
var active = $('.nav li.active a');
|
|
||||||
active = active[active.length - 1];
|
|
||||||
if (clicked !== active) {
|
|
||||||
$(active).parent().removeClass("active");
|
|
||||||
$(clicked).parent().addClass("active");
|
|
||||||
}
|
|
||||||
}, 50);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
* Taken from themes/mkdocs/js/base.js
|
|
||||||
* ------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
$('body').scrollspy({
|
|
||||||
target: '.bs-sidebar',
|
|
||||||
offset: 100
|
|
||||||
});
|
|
||||||
|
|
||||||
/* Prevent disabled links from causing a page reload */
|
|
||||||
$("li.disabled a").click(function() {
|
|
||||||
event.preventDefault();
|
|
||||||
});
|
|
||||||
|
|
||||||
// See https://www.cambiaresearch.com/articles/15/javascript-char-codes-key-codes
|
|
||||||
// We only list common keys below. Obscure keys are omited and their use is discouraged.
|
|
||||||
var keyCodes = {
|
|
||||||
8: 'backspace',
|
|
||||||
9: 'tab',
|
|
||||||
13: 'enter',
|
|
||||||
16: 'shift',
|
|
||||||
17: 'ctrl',
|
|
||||||
18: 'alt',
|
|
||||||
19: 'pause/break',
|
|
||||||
20: 'caps lock',
|
|
||||||
27: 'escape',
|
|
||||||
32: 'spacebar',
|
|
||||||
33: 'page up',
|
|
||||||
34: 'page down',
|
|
||||||
35: 'end',
|
|
||||||
36: 'home',
|
|
||||||
37: '←',
|
|
||||||
38: '↑',
|
|
||||||
39: '→',
|
|
||||||
40: '↓',
|
|
||||||
45: 'insert',
|
|
||||||
46: 'delete',
|
|
||||||
48: '0',
|
|
||||||
49: '1',
|
|
||||||
50: '2',
|
|
||||||
51: '3',
|
|
||||||
52: '4',
|
|
||||||
53: '5',
|
|
||||||
54: '6',
|
|
||||||
55: '7',
|
|
||||||
56: '8',
|
|
||||||
57: '9',
|
|
||||||
65: 'a',
|
|
||||||
66: 'b',
|
|
||||||
67: 'c',
|
|
||||||
68: 'd',
|
|
||||||
69: 'e',
|
|
||||||
70: 'f',
|
|
||||||
71: 'g',
|
|
||||||
72: 'h',
|
|
||||||
73: 'i',
|
|
||||||
74: 'j',
|
|
||||||
75: 'k',
|
|
||||||
76: 'l',
|
|
||||||
77: 'm',
|
|
||||||
78: 'n',
|
|
||||||
79: 'o',
|
|
||||||
80: 'p',
|
|
||||||
81: 'q',
|
|
||||||
82: 'r',
|
|
||||||
83: 's',
|
|
||||||
84: 't',
|
|
||||||
85: 'u',
|
|
||||||
86: 'v',
|
|
||||||
87: 'w',
|
|
||||||
88: 'x',
|
|
||||||
89: 'y',
|
|
||||||
90: 'z',
|
|
||||||
91: 'Left Windows Key / Left ⌘',
|
|
||||||
92: 'Right Windows Key',
|
|
||||||
93: 'Windows Menu / Right ⌘',
|
|
||||||
96: 'numpad 0',
|
|
||||||
97: 'numpad 1',
|
|
||||||
98: 'numpad 2',
|
|
||||||
99: 'numpad 3',
|
|
||||||
100: 'numpad 4',
|
|
||||||
101: 'numpad 5',
|
|
||||||
102: 'numpad 6',
|
|
||||||
103: 'numpad 7',
|
|
||||||
104: 'numpad 8',
|
|
||||||
105: 'numpad 9',
|
|
||||||
106: 'multiply',
|
|
||||||
107: 'add',
|
|
||||||
109: 'subtract',
|
|
||||||
110: 'decimal point',
|
|
||||||
111: 'divide',
|
|
||||||
112: 'f1',
|
|
||||||
113: 'f2',
|
|
||||||
114: 'f3',
|
|
||||||
115: 'f4',
|
|
||||||
116: 'f5',
|
|
||||||
117: 'f6',
|
|
||||||
118: 'f7',
|
|
||||||
119: 'f8',
|
|
||||||
120: 'f9',
|
|
||||||
121: 'f10',
|
|
||||||
122: 'f11',
|
|
||||||
123: 'f12',
|
|
||||||
124: 'f13',
|
|
||||||
125: 'f14',
|
|
||||||
126: 'f15',
|
|
||||||
127: 'f16',
|
|
||||||
128: 'f17',
|
|
||||||
129: 'f18',
|
|
||||||
130: 'f19',
|
|
||||||
131: 'f20',
|
|
||||||
132: 'f21',
|
|
||||||
133: 'f22',
|
|
||||||
134: 'f23',
|
|
||||||
135: 'f24',
|
|
||||||
144: 'num lock',
|
|
||||||
145: 'scroll lock',
|
|
||||||
186: ';',
|
|
||||||
187: '=',
|
|
||||||
188: ',',
|
|
||||||
189: '‐',
|
|
||||||
190: '.',
|
|
||||||
191: '?',
|
|
||||||
192: '`',
|
|
||||||
219: '[',
|
|
||||||
220: '\',
|
|
||||||
221: ']',
|
|
||||||
222: ''',
|
|
||||||
};
|
|
@ -1,8 +0,0 @@
|
|||||||
MathJax.Hub.Config({
|
|
||||||
"tex2jax": { inlineMath: [ [ '$', '$' ] ] }
|
|
||||||
});
|
|
||||||
MathJax.Hub.Config({
|
|
||||||
config: ["MMLorHTML.js"],
|
|
||||||
jax: ["input/TeX", "output/HTML-CSS", "output/NativeMML"],
|
|
||||||
extensions: ["MathMenu.js", "MathZoom.js"]
|
|
||||||
});
|
|
@ -0,0 +1,2 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Search · RELOG</title><script data-outdated-warner src="../assets/warner.js"></script><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.045/juliamono.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.24/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL=".."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="../assets/documenter.js"></script><script src="../siteinfo.js"></script><script src="../../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="../assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="../assets/themeswap.js"></script><link href="../assets/custom.css" rel="stylesheet" type="text/css"/></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href="../">RELOG</a></span></div><form class="docs-search" action><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li><a class="tocitem" href="../">Home</a></li><li><a class="tocitem" href="../usage/">Usage</a></li><li><a class="tocitem" href="../format/">Input and Output Data Formats</a></li><li><a class="tocitem" href="../reports/">Simplified Solution Reports</a></li><li><a class="tocitem" href="../model/">Optimization Model</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Search</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Search</a></li></ul></nav><div class="docs-right"><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article><p id="documenter-search-info">Loading search...</p><ul id="documenter-search-results"></ul></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.21 on <span class="colophon-date" title="Friday 26 August 2022 13:01">Friday 26 August 2022</span>. Using Julia version 1.7.3.</p></section><footer class="modal-card-foot"></footer></div></div></div></body><script src="../search_index.js"></script><script src="../assets/search.js"></script></html>
|
@ -1,98 +0,0 @@
|
|||||||
function getSearchTermFromLocation() {
|
|
||||||
var sPageURL = window.location.search.substring(1);
|
|
||||||
var sURLVariables = sPageURL.split('&');
|
|
||||||
for (var i = 0; i < sURLVariables.length; i++) {
|
|
||||||
var sParameterName = sURLVariables[i].split('=');
|
|
||||||
if (sParameterName[0] == 'q') {
|
|
||||||
return decodeURIComponent(sParameterName[1].replace(/\+/g, '%20'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function joinUrl (base, path) {
|
|
||||||
if (path.substring(0, 1) === "/") {
|
|
||||||
// path starts with `/`. Thus it is absolute.
|
|
||||||
return path;
|
|
||||||
}
|
|
||||||
if (base.substring(base.length-1) === "/") {
|
|
||||||
// base ends with `/`
|
|
||||||
return base + path;
|
|
||||||
}
|
|
||||||
return base + "/" + path;
|
|
||||||
}
|
|
||||||
|
|
||||||
function formatResult (location, title, summary) {
|
|
||||||
return '<article><h3><a href="' + joinUrl(base_url, location) + '">'+ title + '</a></h3><p>' + summary +'</p></article>';
|
|
||||||
}
|
|
||||||
|
|
||||||
function displayResults (results) {
|
|
||||||
var search_results = document.getElementById("mkdocs-search-results");
|
|
||||||
while (search_results.firstChild) {
|
|
||||||
search_results.removeChild(search_results.firstChild);
|
|
||||||
}
|
|
||||||
if (results.length > 0){
|
|
||||||
for (var i=0; i < results.length; i++){
|
|
||||||
var result = results[i];
|
|
||||||
var html = formatResult(result.location, result.title, result.summary);
|
|
||||||
search_results.insertAdjacentHTML('beforeend', html);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
search_results.insertAdjacentHTML('beforeend', "<p>No results found</p>");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function doSearch () {
|
|
||||||
var query = document.getElementById('mkdocs-search-query').value;
|
|
||||||
if (query.length > min_search_length) {
|
|
||||||
if (!window.Worker) {
|
|
||||||
displayResults(search(query));
|
|
||||||
} else {
|
|
||||||
searchWorker.postMessage({query: query});
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
// Clear results for short queries
|
|
||||||
displayResults([]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function initSearch () {
|
|
||||||
var search_input = document.getElementById('mkdocs-search-query');
|
|
||||||
if (search_input) {
|
|
||||||
search_input.addEventListener("keyup", doSearch);
|
|
||||||
}
|
|
||||||
var term = getSearchTermFromLocation();
|
|
||||||
if (term) {
|
|
||||||
search_input.value = term;
|
|
||||||
doSearch();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onWorkerMessage (e) {
|
|
||||||
if (e.data.allowSearch) {
|
|
||||||
initSearch();
|
|
||||||
} else if (e.data.results) {
|
|
||||||
var results = e.data.results;
|
|
||||||
displayResults(results);
|
|
||||||
} else if (e.data.config) {
|
|
||||||
min_search_length = e.data.config.min_search_length-1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!window.Worker) {
|
|
||||||
console.log('Web Worker API not supported');
|
|
||||||
// load index in main thread
|
|
||||||
$.getScript(joinUrl(base_url, "search/worker.js")).done(function () {
|
|
||||||
console.log('Loaded worker');
|
|
||||||
init();
|
|
||||||
window.postMessage = function (msg) {
|
|
||||||
onWorkerMessage({data: msg});
|
|
||||||
};
|
|
||||||
}).fail(function (jqxhr, settings, exception) {
|
|
||||||
console.error('Could not load worker.js');
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
// Wrap search in a web worker
|
|
||||||
var searchWorker = new Worker(joinUrl(base_url, "search/worker.js"));
|
|
||||||
searchWorker.postMessage({init: true});
|
|
||||||
searchWorker.onmessage = onWorkerMessage;
|
|
||||||
}
|
|
@ -1,130 +0,0 @@
|
|||||||
var base_path = 'function' === typeof importScripts ? '.' : '/search/';
|
|
||||||
var allowSearch = false;
|
|
||||||
var index;
|
|
||||||
var documents = {};
|
|
||||||
var lang = ['en'];
|
|
||||||
var data;
|
|
||||||
|
|
||||||
function getScript(script, callback) {
|
|
||||||
console.log('Loading script: ' + script);
|
|
||||||
$.getScript(base_path + script).done(function () {
|
|
||||||
callback();
|
|
||||||
}).fail(function (jqxhr, settings, exception) {
|
|
||||||
console.log('Error: ' + exception);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function getScriptsInOrder(scripts, callback) {
|
|
||||||
if (scripts.length === 0) {
|
|
||||||
callback();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
getScript(scripts[0], function() {
|
|
||||||
getScriptsInOrder(scripts.slice(1), callback);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
function loadScripts(urls, callback) {
|
|
||||||
if( 'function' === typeof importScripts ) {
|
|
||||||
importScripts.apply(null, urls);
|
|
||||||
callback();
|
|
||||||
} else {
|
|
||||||
getScriptsInOrder(urls, callback);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function onJSONLoaded () {
|
|
||||||
data = JSON.parse(this.responseText);
|
|
||||||
var scriptsToLoad = ['lunr.js'];
|
|
||||||
if (data.config && data.config.lang && data.config.lang.length) {
|
|
||||||
lang = data.config.lang;
|
|
||||||
}
|
|
||||||
if (lang.length > 1 || lang[0] !== "en") {
|
|
||||||
scriptsToLoad.push('lunr.stemmer.support.js');
|
|
||||||
if (lang.length > 1) {
|
|
||||||
scriptsToLoad.push('lunr.multi.js');
|
|
||||||
}
|
|
||||||
for (var i=0; i < lang.length; i++) {
|
|
||||||
if (lang[i] != 'en') {
|
|
||||||
scriptsToLoad.push(['lunr', lang[i], 'js'].join('.'));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
loadScripts(scriptsToLoad, onScriptsLoaded);
|
|
||||||
}
|
|
||||||
|
|
||||||
function onScriptsLoaded () {
|
|
||||||
console.log('All search scripts loaded, building Lunr index...');
|
|
||||||
if (data.config && data.config.separator && data.config.separator.length) {
|
|
||||||
lunr.tokenizer.separator = new RegExp(data.config.separator);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (data.index) {
|
|
||||||
index = lunr.Index.load(data.index);
|
|
||||||
data.docs.forEach(function (doc) {
|
|
||||||
documents[doc.location] = doc;
|
|
||||||
});
|
|
||||||
console.log('Lunr pre-built index loaded, search ready');
|
|
||||||
} else {
|
|
||||||
index = lunr(function () {
|
|
||||||
if (lang.length === 1 && lang[0] !== "en" && lunr[lang[0]]) {
|
|
||||||
this.use(lunr[lang[0]]);
|
|
||||||
} else if (lang.length > 1) {
|
|
||||||
this.use(lunr.multiLanguage.apply(null, lang)); // spread operator not supported in all browsers: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator#Browser_compatibility
|
|
||||||
}
|
|
||||||
this.field('title');
|
|
||||||
this.field('text');
|
|
||||||
this.ref('location');
|
|
||||||
|
|
||||||
for (var i=0; i < data.docs.length; i++) {
|
|
||||||
var doc = data.docs[i];
|
|
||||||
this.add(doc);
|
|
||||||
documents[doc.location] = doc;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
console.log('Lunr index built, search ready');
|
|
||||||
}
|
|
||||||
allowSearch = true;
|
|
||||||
postMessage({config: data.config});
|
|
||||||
postMessage({allowSearch: allowSearch});
|
|
||||||
}
|
|
||||||
|
|
||||||
function init () {
|
|
||||||
var oReq = new XMLHttpRequest();
|
|
||||||
oReq.addEventListener("load", onJSONLoaded);
|
|
||||||
var index_path = base_path + '/search_index.json';
|
|
||||||
if( 'function' === typeof importScripts ){
|
|
||||||
index_path = 'search_index.json';
|
|
||||||
}
|
|
||||||
oReq.open("GET", index_path);
|
|
||||||
oReq.send();
|
|
||||||
}
|
|
||||||
|
|
||||||
function search (query) {
|
|
||||||
if (!allowSearch) {
|
|
||||||
console.error('Assets for search still loading');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var resultDocuments = [];
|
|
||||||
var results = index.search(query);
|
|
||||||
for (var i=0; i < results.length; i++){
|
|
||||||
var result = results[i];
|
|
||||||
doc = documents[result.ref];
|
|
||||||
doc.summary = doc.text.substring(0, 200);
|
|
||||||
resultDocuments.push(doc);
|
|
||||||
}
|
|
||||||
return resultDocuments;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( 'function' === typeof importScripts ) {
|
|
||||||
onmessage = function (e) {
|
|
||||||
if (e.data.init) {
|
|
||||||
init();
|
|
||||||
} else if (e.data.query) {
|
|
||||||
postMessage({ results: search(e.data.query) });
|
|
||||||
} else {
|
|
||||||
console.error("Worker - Unrecognized message: " + e);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
}
|
|
@ -1,23 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url>
|
|
||||||
<loc>None</loc>
|
|
||||||
<lastmod>2021-10-15</lastmod>
|
|
||||||
<changefreq>daily</changefreq>
|
|
||||||
</url><url>
|
|
||||||
<loc>None</loc>
|
|
||||||
<lastmod>2021-10-15</lastmod>
|
|
||||||
<changefreq>daily</changefreq>
|
|
||||||
</url><url>
|
|
||||||
<loc>None</loc>
|
|
||||||
<lastmod>2021-10-15</lastmod>
|
|
||||||
<changefreq>daily</changefreq>
|
|
||||||
</url><url>
|
|
||||||
<loc>None</loc>
|
|
||||||
<lastmod>2021-10-15</lastmod>
|
|
||||||
<changefreq>daily</changefreq>
|
|
||||||
</url><url>
|
|
||||||
<loc>None</loc>
|
|
||||||
<lastmod>2021-10-15</lastmod>
|
|
||||||
<changefreq>daily</changefreq>
|
|
||||||
</url>
|
|
||||||
</urlset>
|
|