Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Circle CI
committed
Mar 29, 2020
1 parent
458a297
commit 407fca4
Showing
8 changed files
with
773 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/* | ||
github.com style (c) Vasily Polovnyov <vast@whiteants.net> | ||
*/ | ||
|
||
.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
padding: 0.5em; | ||
color: #333; | ||
background: #f8f8f8; | ||
} | ||
|
||
.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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<!DOCTYPE html PUBLIC "" | ||
""> | ||
<html><head><meta charset="UTF-8" /><title>Liberator-hal.discovery-resource 0.1.0</title><link rel="stylesheet" type="text/css" href="css/default.css" /><link rel="stylesheet" type="text/css" href="css/highlight.css" /><script type="text/javascript" src="js/highlight.min.js"></script><script type="text/javascript" src="js/jquery.min.js"></script><script type="text/javascript" src="js/page_effects.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><div id="header"><h2>Generated by <a href="https://github.com/weavejester/codox">Codox</a></h2><h1><a href="index.html"><span class="project-title"><span class="project-name">Liberator-hal.discovery-resource</span> <span class="project-version">0.1.0</span></span></a></h1></div><div class="sidebar primary"><h3 class="no-link"><span class="inner">Project</span></h3><ul class="index-link"><li class="depth-1 current"><a href="index.html"><div class="inner">Index</div></a></li></ul><h3 class="no-link"><span class="inner">Namespaces</span></h3><ul><li class="depth-1 "><a href="liberator-hal.discovery-resource.core.html"><div class="inner"><span>liberator-hal.discovery-resource.core</span></div></a></li></ul></div><div class="namespace-index" id="content"><h1><span class="project-title"><span class="project-name">Liberator-hal.discovery-resource</span> <span class="project-version">0.1.0</span></span></h1><h5 class="license">Released under the <a href="https://opensource.org/licenses/MIT">MIT License</a></h5><div class="doc"><p>A HAL discovery resource for liberator.</p></div><h2>Installation</h2><p>To install, add the following dependency to your project or build file:</p><pre class="deps">[io.logicblocks/liberator-hal.discovery-resource "0.1.0"]</pre><h2>Namespaces</h2><div class="namespace"><h3><a href="liberator-hal.discovery-resource.core.html">liberator-hal.discovery-resource.core</a></h3><div class="doc"><div class="markdown"></div></div><div class="index"><p>Public variables and functions:</p><ul><li> <a href="liberator-hal.discovery-resource.core.html#var-*default-links*">*default-links*</a> </li><li> <a href="liberator-hal.discovery-resource.core.html#var-definitions">definitions</a> </li><li> <a href="liberator-hal.discovery-resource.core.html#var-handler">handler</a> </li></ul></div></div></div></body></html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
function visibleInParent(element) { | ||
var position = $(element).position().top | ||
return position > -50 && position < ($(element).offsetParent().height() - 50) | ||
} | ||
|
||
function hasFragment(link, fragment) { | ||
return $(link).attr("href").indexOf("#" + fragment) != -1 | ||
} | ||
|
||
function findLinkByFragment(elements, fragment) { | ||
return $(elements).filter(function(i, e) { return hasFragment(e, fragment)}).first() | ||
} | ||
|
||
function scrollToCurrentVarLink(elements) { | ||
var elements = $(elements); | ||
var parent = elements.offsetParent(); | ||
|
||
if (elements.length == 0) return; | ||
|
||
var top = elements.first().position().top; | ||
var bottom = elements.last().position().top + elements.last().height(); | ||
|
||
if (top >= 0 && bottom <= parent.height()) return; | ||
|
||
if (top < 0) { | ||
parent.scrollTop(parent.scrollTop() + top); | ||
} | ||
else if (bottom > parent.height()) { | ||
parent.scrollTop(parent.scrollTop() + bottom - parent.height()); | ||
} | ||
} | ||
|
||
function setCurrentVarLink() { | ||
$('.secondary a').parent().removeClass('current') | ||
$('.anchor'). | ||
filter(function(index) { return visibleInParent(this) }). | ||
each(function(index, element) { | ||
findLinkByFragment(".secondary a", element.id). | ||
parent(). | ||
addClass('current') | ||
}); | ||
scrollToCurrentVarLink('.secondary .current'); | ||
} | ||
|
||
var hasStorage = (function() { try { return localStorage.getItem } catch(e) {} }()) | ||
|
||
function scrollPositionId(element) { | ||
var directory = window.location.href.replace(/[^\/]+\.html$/, '') | ||
return 'scroll::' + $(element).attr('id') + '::' + directory | ||
} | ||
|
||
function storeScrollPosition(element) { | ||
if (!hasStorage) return; | ||
localStorage.setItem(scrollPositionId(element) + "::x", $(element).scrollLeft()) | ||
localStorage.setItem(scrollPositionId(element) + "::y", $(element).scrollTop()) | ||
} | ||
|
||
function recallScrollPosition(element) { | ||
if (!hasStorage) return; | ||
$(element).scrollLeft(localStorage.getItem(scrollPositionId(element) + "::x")) | ||
$(element).scrollTop(localStorage.getItem(scrollPositionId(element) + "::y")) | ||
} | ||
|
||
function persistScrollPosition(element) { | ||
recallScrollPosition(element) | ||
$(element).scroll(function() { storeScrollPosition(element) }) | ||
} | ||
|
||
function sidebarContentWidth(element) { | ||
var widths = $(element).find('.inner').map(function() { return $(this).innerWidth() }) | ||
return Math.max.apply(Math, widths) | ||
} | ||
|
||
function calculateSize(width, snap, margin, minimum) { | ||
if (width == 0) { | ||
return 0 | ||
} | ||
else { | ||
return Math.max(minimum, (Math.ceil(width / snap) * snap) + (margin * 2)) | ||
} | ||
} | ||
|
||
function resizeSidebars() { | ||
var primaryWidth = sidebarContentWidth('.primary') | ||
var secondaryWidth = 0 | ||
|
||
if ($('.secondary').length != 0) { | ||
secondaryWidth = sidebarContentWidth('.secondary') | ||
} | ||
|
||
// snap to grid | ||
primaryWidth = calculateSize(primaryWidth, 32, 13, 160) | ||
secondaryWidth = calculateSize(secondaryWidth, 32, 13, 160) | ||
|
||
$('.primary').css('width', primaryWidth) | ||
$('.secondary').css('width', secondaryWidth).css('left', primaryWidth + 1) | ||
|
||
if (secondaryWidth > 0) { | ||
$('#content').css('left', primaryWidth + secondaryWidth + 2) | ||
} | ||
else { | ||
$('#content').css('left', primaryWidth + 1) | ||
} | ||
} | ||
|
||
$(window).ready(resizeSidebars) | ||
$(window).ready(setCurrentVarLink) | ||
$(window).ready(function() { persistScrollPosition('.primary')}) | ||
$(window).ready(function() { | ||
$('#content').scroll(setCurrentVarLink) | ||
$(window).resize(setCurrentVarLink) | ||
}) |
Oops, something went wrong.