Skip to content

Commit a918b6b

Browse files
committed
rebuild docs based on latest repos
1 parent d1dd4ac commit a918b6b

File tree

3,202 files changed

+5089
-3182
lines changed

Some content is hidden

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

3,202 files changed

+5089
-3182
lines changed

_static/basic.css

Lines changed: 20 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ ul.search li a {
130130
font-weight: bold;
131131
}
132132

133-
ul.search li p.context {
133+
ul.search li div.context {
134134
color: #888;
135135
margin: 2px 0 0 30px;
136136
text-align: left;
@@ -508,63 +508,6 @@ table.hlist td {
508508
vertical-align: top;
509509
}
510510

511-
/* -- object description styles --------------------------------------------- */
512-
513-
.sig {
514-
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
515-
}
516-
517-
.sig-name, code.descname {
518-
background-color: transparent;
519-
font-weight: bold;
520-
}
521-
522-
.sig-name {
523-
font-size: 1.1em;
524-
}
525-
526-
code.descname {
527-
font-size: 1.2em;
528-
}
529-
530-
.sig-prename, code.descclassname {
531-
background-color: transparent;
532-
}
533-
534-
.optional {
535-
font-size: 1.3em;
536-
}
537-
538-
.sig-paren {
539-
font-size: larger;
540-
}
541-
542-
.sig-param.n {
543-
font-style: italic;
544-
}
545-
546-
/* C++ specific styling */
547-
548-
.sig-inline.c-texpr,
549-
.sig-inline.cpp-texpr {
550-
font-family: unset;
551-
}
552-
553-
.sig.c .k, .sig.c .kt,
554-
.sig.cpp .k, .sig.cpp .kt {
555-
color: #0033B3;
556-
}
557-
558-
.sig.c .m,
559-
.sig.cpp .m {
560-
color: #1750EB;
561-
}
562-
563-
.sig.c .s, .sig.c .sc,
564-
.sig.cpp .s, .sig.cpp .sc {
565-
color: #067D17;
566-
}
567-
568511

569512
/* -- other body styles ----------------------------------------------------- */
570513

@@ -691,6 +634,14 @@ dl.glossary dt {
691634
font-size: 1.1em;
692635
}
693636

637+
.optional {
638+
font-size: 1.3em;
639+
}
640+
641+
.sig-paren {
642+
font-size: larger;
643+
}
644+
694645
.versionmodified {
695646
font-style: italic;
696647
}
@@ -820,11 +771,7 @@ div.code-block-caption code {
820771
table.highlighttable td.linenos,
821772
span.linenos,
822773
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
823-
user-select: none;
824-
-webkit-user-select: text; /* Safari fallback only */
825-
-webkit-user-select: none; /* Chrome/Safari */
826-
-moz-user-select: none; /* Firefox */
827-
-ms-user-select: none; /* IE10+ */
774+
user-select: none;
828775
}
829776

830777
div.code-block-caption span.caption-number {
@@ -839,6 +786,16 @@ div.literal-block-wrapper {
839786
margin: 1em 0;
840787
}
841788

789+
code.descname {
790+
background-color: transparent;
791+
font-weight: bold;
792+
font-size: 1.2em;
793+
}
794+
795+
code.descclassname {
796+
background-color: transparent;
797+
}
798+
842799
code.xref, a code {
843800
background-color: transparent;
844801
font-weight: bold;

_static/check-solid.svg

Lines changed: 1 addition & 1 deletion
Loading

_static/clipboard.min.js

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

_static/copy-button.svg

Lines changed: 3 additions & 3 deletions
Loading

_static/copybutton.css

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,45 @@
11
/* Copy buttons */
22
button.copybtn {
33
position: absolute;
4+
display: flex;
45
top: .3em;
56
right: .5em;
6-
width: 1.7rem;
7-
height: 1.7rem;
7+
width: 1.7em;
8+
height: 1.7em;
89
opacity: 0;
9-
transition: opacity 0.3s, border .3s;
10+
transition: opacity 0.3s, border .3s, background-color .3s;
1011
user-select: none;
1112
padding: 0;
1213
border: none;
1314
outline: none;
15+
border-radius: 0.4em;
16+
border: #e1e1e1 1px solid;
17+
background-color: rgb(245, 245, 245);
18+
}
19+
20+
button.copybtn.success {
21+
border-color: #22863a;
1422
}
1523

1624
button.copybtn img {
1725
width: 100%;
26+
padding: .2em;
1827
}
1928

2029
div.highlight {
2130
position: relative;
2231
}
2332

2433
.highlight:hover button.copybtn {
25-
opacity: .7;
34+
opacity: 1;
2635
}
2736

2837
.highlight button.copybtn:hover {
29-
opacity: 1;
38+
background-color: rgb(235, 235, 235);
39+
}
40+
41+
.highlight button.copybtn:active {
42+
background-color: rgb(187, 187, 187);
3043
}
3144

3245
/**
@@ -46,11 +59,10 @@ div.highlight {
4659
visibility: hidden;
4760
position: absolute;
4861
content: attr(data-tooltip);
49-
padding: 2px;
50-
top: 0;
62+
padding: .2em;
63+
font-size: .8em;
5164
left: -.2em;
5265
background: grey;
53-
font-size: 1rem;
5466
color: white;
5567
white-space: nowrap;
5668
z-index: 2;

_static/copybutton.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ const clearSelection = () => {
8181
// Changes tooltip text for two seconds, then changes it back
8282
const temporarilyChangeTooltip = (el, oldText, newText) => {
8383
el.setAttribute('data-tooltip', newText)
84+
el.classList.add('success')
8485
setTimeout(() => el.setAttribute('data-tooltip', oldText), 2000)
86+
setTimeout(() => el.classList.remove('success'), 2000)
8587
}
8688

8789
// Changes the copy button icon for two seconds, then changes it back
@@ -104,10 +106,9 @@ const addCopyButtonToCodeCells = () => {
104106
codeCells.forEach((codeCell, index) => {
105107
const id = codeCellId(index)
106108
codeCell.setAttribute('id', id)
107-
const pre_bg = getComputedStyle(codeCell).backgroundColor;
108109

109110
const clipboardButton = id =>
110-
`<button class="copybtn o-tooltip--left" style="background-color: ${pre_bg}" data-tooltip="${messages[locale]['copy']}" data-clipboard-target="#${id}">
111+
`<button class="copybtn o-tooltip--left" data-tooltip="${messages[locale]['copy']}" data-clipboard-target="#${id}">
111112
<img src="${path_static}copy-button.svg" alt="${messages[locale]['copy_to_clipboard']}">
112113
</button>`
113114
codeCell.insertAdjacentHTML('afterend', clipboardButton(id))

_static/searchtools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ var Search = {
509509
var excerpt = ((start > 0) ? '...' : '') +
510510
$.trim(text.substr(start, 240)) +
511511
((start + 240 - text.length) ? '...' : '');
512-
var rv = $('<p class="context"></p>').text(excerpt);
512+
var rv = $('<div class="context"></div>').text(excerpt);
513513
$.each(hlwords, function() {
514514
rv = rv.highlightText(this, 'highlighted');
515515
});

0 commit comments

Comments
 (0)