Skip to content

Commit aa223b3

Browse files
authored
Moved shared CSS for benchmarks pages to a separate file (open-telemetry#3482)
1 parent e35ce45 commit aa223b3

File tree

3 files changed

+68
-137
lines changed

3 files changed

+68
-137
lines changed

content/en/docs/collector/benchmarks.md

+1-68
Original file line numberDiff line numberDiff line change
@@ -3,74 +3,7 @@ title: Benchmarks
33
weight: 99
44
---
55

6-
<style>
7-
main {
8-
margin: 8px;
9-
width: 100%;
10-
display: flex;
11-
flex-direction: column;
12-
}
13-
14-
button {
15-
color: #fff;
16-
background-color: #3298dc;
17-
border-color: transparent;
18-
cursor: pointer;
19-
text-align: center;
20-
}
21-
22-
button:hover {
23-
background-color: #2793da;
24-
flex: none;
25-
}
26-
27-
.spacer {
28-
flex: auto;
29-
}
30-
31-
.small {
32-
font-size: 0.75rem;
33-
}
34-
35-
footer {
36-
margin-top: 16px;
37-
display: flex;
38-
align-items: center;
39-
}
40-
41-
.benchmark-set {
42-
margin: 8px 0;
43-
width: 100%;
44-
display: flex;
45-
flex-direction: column;
46-
}
47-
48-
.benchmark-title {
49-
font-size: 3rem;
50-
font-weight: 600;
51-
word-break: break-word;
52-
text-align: center;
53-
}
54-
55-
.benchmark-graphs {
56-
display: flex;
57-
flex-direction: column;
58-
justify-content: space-around;
59-
align-items: center;
60-
flex-wrap: wrap;
61-
width: 100%;
62-
}
63-
64-
.benchmark-chart {
65-
max-width: 1000px;
66-
}
67-
68-
div.container {
69-
max-width: 1012px;
70-
margin-right: auto;
71-
margin-left: auto;
72-
}
73-
</style>
6+
<link rel="stylesheet" href="/css/benchmarks.css">
747

758
The OpenTelemetry Collector runs load tests on every commit to the
769
[opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/)

content/en/docs/instrumentation/js/benchmarks.md

+1-69
Original file line numberDiff line numberDiff line change
@@ -4,75 +4,7 @@ weight: 101
44
cSpell:ignore: Elems rrggbbaa
55
---
66

7-
<style>
8-
9-
main {
10-
margin: 8px;
11-
width: 100%;
12-
display: flex;
13-
flex-direction: column;
14-
}
15-
16-
button {
17-
color: #fff;
18-
background-color: #3298dc;
19-
border-color: transparent;
20-
cursor: pointer;
21-
text-align: center;
22-
}
23-
24-
button:hover {
25-
background-color: #2793da;
26-
flex: none;
27-
}
28-
29-
.spacer {
30-
flex: auto;
31-
}
32-
33-
.small {
34-
font-size: 0.75rem;
35-
}
36-
37-
footer {
38-
margin-top: 16px;
39-
display: flex;
40-
align-items: center;
41-
}
42-
43-
.benchmark-set {
44-
margin: 8px 0;
45-
width: 100%;
46-
display: flex;
47-
flex-direction: column;
48-
}
49-
50-
.benchmark-title {
51-
font-size: 3rem;
52-
font-weight: 600;
53-
word-break: break-word;
54-
text-align: center;
55-
}
56-
57-
.benchmark-graphs {
58-
display: flex;
59-
flex-direction: column;
60-
justify-content: space-around;
61-
align-items: center;
62-
flex-wrap: wrap;
63-
width: 100%;
64-
}
65-
66-
.benchmark-chart {
67-
max-width: 1000px;
68-
}
69-
70-
div.container {
71-
max-width: 1012px;
72-
margin-right: auto;
73-
margin-left: auto;
74-
}
75-
</style>
7+
<link rel="stylesheet" href="/css/benchmarks.css">
768

779
The OpenTelemetry JavaScript SDK runs benchmark tests on every commit to the
7810
[opentelemetry-js](https://github.com/open-telemetry/opentelemetry-js/)

static/css/benchmarks.css

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
main {
2+
margin: 8px;
3+
width: 100%;
4+
display: flex;
5+
flex-direction: column;
6+
}
7+
8+
button {
9+
color: #fff;
10+
background-color: #3298dc;
11+
border-color: transparent;
12+
cursor: pointer;
13+
text-align: center;
14+
}
15+
16+
button:hover {
17+
background-color: #2793da;
18+
flex: none;
19+
}
20+
21+
.spacer {
22+
flex: auto;
23+
}
24+
25+
.small {
26+
font-size: 0.75rem;
27+
}
28+
29+
footer {
30+
margin-top: 16px;
31+
display: flex;
32+
align-items: center;
33+
}
34+
35+
.benchmark-set {
36+
margin: 8px 0;
37+
width: 100%;
38+
display: flex;
39+
flex-direction: column;
40+
}
41+
42+
.benchmark-title {
43+
font-size: 3rem;
44+
font-weight: 600;
45+
word-break: break-word;
46+
text-align: center;
47+
}
48+
49+
.benchmark-graphs {
50+
display: flex;
51+
flex-direction: column;
52+
justify-content: space-around;
53+
align-items: center;
54+
flex-wrap: wrap;
55+
width: 100%;
56+
}
57+
58+
.benchmark-chart {
59+
max-width: 1000px;
60+
}
61+
62+
div.container {
63+
max-width: 1012px;
64+
margin-right: auto;
65+
margin-left: auto;
66+
}

0 commit comments

Comments
 (0)