Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 40570c2

Browse files
committed
build for yolov5 model page
1 parent b36eda6 commit 40570c2

File tree

158 files changed

+796
-2442
lines changed

Some content is hidden

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

158 files changed

+796
-2442
lines changed

_static/basic.css

Lines changed: 63 additions & 20 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 div.context {
133+
ul.search li p.context {
134134
color: #888;
135135
margin: 2px 0 0 30px;
136136
text-align: left;
@@ -508,6 +508,63 @@ 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+
511568

512569
/* -- other body styles ----------------------------------------------------- */
513570

@@ -634,14 +691,6 @@ dl.glossary dt {
634691
font-size: 1.1em;
635692
}
636693

637-
.optional {
638-
font-size: 1.3em;
639-
}
640-
641-
.sig-paren {
642-
font-size: larger;
643-
}
644-
645694
.versionmodified {
646695
font-style: italic;
647696
}
@@ -771,7 +820,11 @@ div.code-block-caption code {
771820
table.highlighttable td.linenos,
772821
span.linenos,
773822
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
774-
user-select: none;
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+ */
775828
}
776829

777830
div.code-block-caption span.caption-number {
@@ -786,16 +839,6 @@ div.literal-block-wrapper {
786839
margin: 1em 0;
787840
}
788841

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-
799842
code.xref, a code {
800843
background-color: transparent;
801844
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: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,32 @@
11
/* Copy buttons */
22
button.copybtn {
33
position: absolute;
4-
display: flex;
54
top: .3em;
65
right: .5em;
7-
width: 1.7em;
8-
height: 1.7em;
6+
width: 1.7rem;
7+
height: 1.7rem;
98
opacity: 0;
10-
transition: opacity 0.3s, border .3s, background-color .3s;
9+
transition: opacity 0.3s, border .3s;
1110
user-select: none;
1211
padding: 0;
1312
border: none;
1413
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;
2214
}
2315

2416
button.copybtn img {
2517
width: 100%;
26-
padding: .2em;
2718
}
2819

2920
div.highlight {
3021
position: relative;
3122
}
3223

3324
.highlight:hover button.copybtn {
34-
opacity: 1;
25+
opacity: .7;
3526
}
3627

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

4532
/**
@@ -59,10 +46,11 @@ div.highlight {
5946
visibility: hidden;
6047
position: absolute;
6148
content: attr(data-tooltip);
62-
padding: .2em;
63-
font-size: .8em;
49+
padding: 2px;
50+
top: 0;
6451
left: -.2em;
6552
background: grey;
53+
font-size: 1rem;
6654
color: white;
6755
white-space: nowrap;
6856
z-index: 2;

_static/copybutton.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ 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')
8584
setTimeout(() => el.setAttribute('data-tooltip', oldText), 2000)
86-
setTimeout(() => el.classList.remove('success'), 2000)
8785
}
8886

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

110109
const clipboardButton = id =>
111-
`<button class="copybtn o-tooltip--left" data-tooltip="${messages[locale]['copy']}" data-clipboard-target="#${id}">
110+
`<button class="copybtn o-tooltip--left" style="background-color: ${pre_bg}" data-tooltip="${messages[locale]['copy']}" data-clipboard-target="#${id}">
112111
<img src="${path_static}copy-button.svg" alt="${messages[locale]['copy_to_clipboard']}">
113112
</button>`
114113
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 = $('<div class="context"></div>').text(excerpt);
512+
var rv = $('<p class="context"></p>').text(excerpt);
513513
$.each(hlwords, function() {
514514
rv = rv.highlightText(this, 'highlighted');
515515
});

0 commit comments

Comments
 (0)