forked from pytorch/pytorch.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.html
129 lines (108 loc) · 4.4 KB
/
ecosystem.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
---
layout: default
title: Ecosystem
permalink: ecosystem/
background-class: ecosystem-background
body-class: ecosystem
---
<div class="jumbotron jumbotron-fluid">
<div class="container">
<h1>
<span id="ecosystem-header">Ecosystem</span> <br>
<span id="ecosystem-header-tools">Tools</span>
</h1>
<p class="lead">Tap into a rich ecosystem of tools, libraries, and more to support, accelerate, and explore AI development.</p>
<p class="ecosystem-join"><a href="{{ site.baseurl }}/ecosystem/join">Join the Ecosystem</a></p>
</div>
</div>
<div id="pagination-scroll" class="main-content-wrapper">
<div class="main-content">
<div class="container">
<!-- START CONTENT -->
{% include ecosystem_sort.html %}
<hr class="ecosystem-divider">
<div id="ecosystem-index-cards">
<div class="list row ecosystem-cards-wrapper cards-right">
{% assign ecosystem = site.ecosystem | sort_natural: "title" %}
{% for item in ecosystem %}
<div class="col-md-6 ecosystem-card-wrapper" id="ecosystemCards" data-categories="{{ item.category | join: "," }}" data-date-added="{{ item.date-added }}" data-id="{{ item.github-id }}" data-title="{{ item.title }}">
<div class="card ecosystem-card">
<a href="{{ item.link }}" target="_blank">
<div class="card-body {{ item.logo-class }} {% if item.experimental %}experimental{% endif %}">
<div class="ecosystem-card-title-container">
<ul class="star-list">
<li class="card-title">{{ item.title }}</li>
<div class="icon-count-container">
<li><img class="github-logo" src="/assets/images/logo-github.svg"></li>
<li class="github-stars-count"></li>
<li class="github-stars-count-whole-number"></li>
</div>
</ul>
{% if item.experimental %}
<div class="experimental-badge">
Experimental
</div>
{% endif %}
</div>
<p class="card-summary">{{ item.summary }}</p>
</div>
</a>
</div>
</div>
{% endfor %}
</div>
<div class="pagination d-flex justify-content-center"></div>
</div>
<div class="join-notice">
<p>Have a project you want featured?</p>
<p><a class="join-link" href="{{ site.baseurl }}/ecosystem/join">Join the PyTorch ecosystem</a></p>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var category = window.location.hash.replace(/^#/, '');;
if (category) {
updateMenuSelection(category);
showCardsByCategory(category);
} else {
updateMenuSelection('all');
}
$(".main-content-menu .nav-link[data-category]").on('click', function(e) {
e.preventDefault();
var category = $(this).data('category');
window.location.hash = category;
if (category) {
showCardsByCategory(category);
} else {
$(".ecosystem-card-wrapper").show();
}
updateMenuSelection(category);
});
function showCardsByCategory(category) {
if (category === "all") {
$(".ecosystem-card-wrapper").show();
return;
}
$(".ecosystem-card-wrapper").each(function(i, el) {
var targets = $(el).data('categories').split(",");
if (targets.indexOf(category) > -1) {
$(el).show();
} else {
$(el).hide();
}
});
}
function updateMenuSelection(category) {
$(".nav-link").removeClass('selected');
$(".nav-link[data-category=" + category + "]").addClass('selected');
}
$(".ecosystem-card-wrapper").each(function() {
var date = new Date($(this).attr("data-date-added")) / 1000;
$(this).attr("data-date-added", date);
});
</script>
<script src="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/numeral.js/2.0.6/numeral.min.js"></script>
<div id="filter-script" data-list-id="ecosystem-index-cards" data-display-count="12" data-pagination="true"></div>
<script ecosystem="true" star-count-call-date="ecosystemStarCountCallDate" star-count-data="ecosystemStarCountData" src="{{ site.baseurl }}/assets/github-stars.js"></script>