Skip to content

Commit 40c9c78

Browse files
committed
update
1 parent afba56c commit 40c9c78

File tree

6 files changed

+85
-11
lines changed

6 files changed

+85
-11
lines changed

assets/scss/_custom_home.scss

+4-1
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@
348348
}
349349

350350
.events-wrapper {
351-
background: radial-gradient(49.06% 49.81% at 50% 51.68%, rgba(62, 162, 255, 0.3) 0%, rgba(0, 117, 255, 0) 100%),
351+
background: radial-gradient(99.06% 49.81% at 50% 61.68%, rgba(62, 162, 255, 0.3) 0%, rgba(0, 117, 255, 0) 50%),
352352
radial-gradient(23.2% 22.47% at 38.96% 38.47%, rgba(255, 245, 0, 0.2) 0%, rgba(20, 255, 0, 0) 100%),
353353
radial-gradient(20.52% 46.35% at 50% 50%, rgba(120, 190, 255, 0.2) 0%, rgba(135, 212, 255, 0) 100%),
354354
radial-gradient(21.08% 29.74% at 63.15% 58.96%, rgba(232, 78, 161, 0.2) 0%, rgba(239, 177, 255, 0) 100%);
@@ -402,6 +402,9 @@
402402
}
403403
}
404404

405+
.tuned-wrapper {
406+
background: none;
407+
}
405408
.tuned-content {
406409
display: flex;
407410
justify-content: space-between;

content/_index.html

+2-9
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ <h4>Run SkyWalking in a snap</h4>
274274
</div>
275275
</div>
276276

277-
<div class="container tuned-wrapper mt-5 mb-5">
277+
<div class="container tuned-wrapper feature-wrapper mt-5 mb-5">
278278
<h2 class="title">
279279
Stay tuned with SkyWalking
280280
</h2>
281-
<ul class="tuned-content center">
281+
<ul class="tuned-content feature-content center">
282282
<li>
283283
<h4>Questions/bugs?</h4>
284284
<p>Features requests, questions or report bugs? Feel free to
@@ -300,13 +300,6 @@ <h4>Follow us on Twitter</h4>
300300
</p>
301301
<img loading="lazy" src="images/home/tuned_twitter.svg" data-nolightbox="true" alt="twitter">
302302
</li>
303-
<li>
304-
305-
{{< events >}}
306-
{{< /events >}}
307-
308-
<img loading="lazy" src="images/home/tuned_release.svg" data-nolightbox="true" alt="release">
309-
</li>
310303
</ul>
311304
</div>
312305

content/team/_index.md

+6
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,9 @@ The SkyWalking team is comprised of Members and Contributors, and the growth has
110110
</div>
111111

112112
{{< contributors >}}
113+
114+
## Contributions over time
115+
116+
<div class="graph-wrapper">
117+
<div id="mergedGraph" style="height: 300px"></div>
118+
</div>

scripts/team.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class GenerateTeamYaml {
5656
async getMergedData({user, repo}) {
5757
const that = this;
5858
let count = 0;
59-
const NUM = 10;
59+
const NUM = 8;
6060
const FAIL_TIPS = `${user}/${repo}/graphs failed!`;
6161

6262
try {

themes/docsy/layouts/partials/script-team.html

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<script src="/js/echarts.min.js"></script>
2+
<script src="/js/mergedData.js"></script>
3+
<script src="/js/initMergedGraph.js?t=20220810"></script>
14
<script>
25
$('.item').on('click', function (e) {
36
e.preventDefault();
+69
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
function initMergedGraph() {
2+
if (window.location.hostname.indexOf('.netlify.app') > -1) {
3+
var previewTips = "<p>This part doesn't show up in preview mode.</p>";
4+
$('#mergedGraph').html(previewTips);
5+
return
6+
}
7+
8+
var chartDom = document.getElementById('mergedGraph');
9+
var myChart = echarts.init(chartDom);
10+
11+
var option = {
12+
title: {
13+
left: 'center',
14+
},
15+
tooltip: {
16+
trigger: 'axis',
17+
axisPointer: {
18+
type: 'cross',
19+
label: {
20+
backgroundColor: '#6a7985'
21+
}
22+
}
23+
},
24+
xAxis: {
25+
type: 'category',
26+
boundaryGap: false,
27+
data: mergedData.date
28+
},
29+
yAxis: {},
30+
grid: {
31+
x: 40,
32+
y: 25,
33+
x2: 30,
34+
y2: 35
35+
},
36+
series: [
37+
{
38+
lineStyle: {
39+
width: 1
40+
},
41+
name: 'Contributions',
42+
type: 'line',
43+
symbol: 'none',
44+
sampling: 'lttb',
45+
itemStyle: {
46+
color: 'rgb(105,183,112)'
47+
},
48+
areaStyle: {
49+
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
50+
{
51+
offset: 0,
52+
color: 'rgb(138,197,138)'
53+
},
54+
{
55+
offset: 1,
56+
color: 'rgb(237,243,237)'
57+
}
58+
])
59+
},
60+
data: mergedData.data
61+
}
62+
]
63+
};
64+
65+
option && myChart.setOption(option);
66+
window.onresize = myChart.resize;
67+
}
68+
69+
initMergedGraph();

0 commit comments

Comments
 (0)