Skip to content

Commit 48fe133

Browse files
author
Travis CI
committed
update auto-generated documentation [ci skip]
update pkgdown path (ci skip)
1 parent bc12530 commit 48fe133

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+569
-16
lines changed

docs/LICENSE.html

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/helpers/animation.html

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 16 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pkgdown.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@ pre, code {
137137
color: #333;
138138
}
139139

140+
pre code {
141+
overflow: auto;
142+
word-wrap: normal;
143+
white-space: pre;
144+
}
145+
140146
pre .img {
141147
margin: 5px 0;
142148
}
@@ -151,6 +157,10 @@ code a, pre a {
151157
color: #375f84;
152158
}
153159

160+
a.sourceLine:hover {
161+
text-decoration: none;
162+
}
163+
154164
.fl {color: #1514b5;}
155165
.fu {color: #000000;} /* function */
156166
.ch,.st {color: #036a07;} /* string */
@@ -161,3 +171,19 @@ code a, pre a {
161171
.error { color: orange; font-weight: bolder;}
162172
.warning { color: #6A0366; font-weight: bolder;}
163173

174+
/* Clipboard --------------------------*/
175+
176+
.hasCopyButton {
177+
position: relative;
178+
}
179+
180+
.btn-copy-ex {
181+
position: absolute;
182+
right: 0;
183+
top: 0;
184+
visibility: hidden;
185+
}
186+
187+
.hasCopyButton:hover button.btn-copy-ex {
188+
visibility: visible;
189+
}

docs/pkgdown.js

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
$(function() {
2-
$("#sidebar").stick_in_parent({offset_top: 40});
2+
3+
$("#sidebar")
4+
.stick_in_parent({offset_top: 40})
5+
.on('sticky_kit:bottom', function(e) {
6+
$(this).parent().css('position', 'static');
7+
})
8+
.on('sticky_kit:unbottom', function(e) {
9+
$(this).parent().css('position', 'relative');
10+
});
11+
312
$('body').scrollspy({
413
target: '#sidebar',
514
offset: 60
@@ -43,3 +52,43 @@ function is_prefix(needle, haystack) {
4352

4453
return(true);
4554
}
55+
56+
/* Clipboard --------------------------*/
57+
58+
function changeTooltipMessage(element, msg) {
59+
var tooltipOriginalTitle=element.getAttribute('data-original-title');
60+
element.setAttribute('data-original-title', msg);
61+
$(element).tooltip('show');
62+
element.setAttribute('data-original-title', tooltipOriginalTitle);
63+
}
64+
65+
if(Clipboard.isSupported()) {
66+
$(document).ready(function() {
67+
var copyButton = "<button type='button' class='btn btn-primary btn-copy-ex' type = 'submit' title='Copy to clipboard' aria-hidden='true' data-toggle='tooltip' data-placement='left auto' data-trigger='hover' data-clipboard-copy><i class='fa fa-copy' aria-hidden='true'></i></button>";
68+
69+
$(".examples").addClass("hasCopyButton");
70+
71+
// Insert copy buttons:
72+
$(copyButton).prependTo(".hasCopyButton");
73+
74+
// Initialize tooltips:
75+
$('.btn-copy-ex').tooltip({container: 'body'});
76+
77+
// Initialize clipboard:
78+
var clipboardBtnCopies = new Clipboard('[data-clipboard-copy]', {
79+
text: function(trigger) {
80+
return trigger.parentNode.textContent;
81+
}
82+
});
83+
84+
clipboardBtnCopies.on('success', function(e) {
85+
changeTooltipMessage(e.trigger, 'Copied!');
86+
e.clearSelection();
87+
});
88+
89+
clipboardBtnCopies.on('error', function() {
90+
changeTooltipMessage(e.trigger,'Press Ctrl+C or Command+C to copy');
91+
});
92+
});
93+
}
94+

docs/reference/MBOInfillCrit.html

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/MBOMultiObjResult.html

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/MBOSingleObjResult.html

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/OptProblem.html

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)