Skip to content

Commit 421e6ec

Browse files
committed
added examples based on real world dataset
1 parent 534c8fa commit 421e6ec

File tree

4 files changed

+737
-0
lines changed

4 files changed

+737
-0
lines changed

_includes/documentation_eg.html

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
<!-- START OF SCIKIT CUSTOM LAYOUT -->
4444
{% elsif page.display_as == "general_examples" %}
4545
{% assign general_examples = true %}
46+
{% elsif page.display_as == "real_dataset" %}
47+
{% assign real_dataset = true %}
4648
<!-- END OF SCIKIT CUSTOM LAYOUT -->
4749
{% endif %}
4850
{% endfor %}
@@ -102,6 +104,42 @@
102104

103105
{% endif %}
104106

107+
108+
109+
<!-- REAL DATASET EXAMPLES -->
110+
{% if real_dataset %}
111+
<section class="--tutorial-section">
112+
<header class="--section-header"><a href="#real_dataset " id="aes">Examples based on real world dataset</a>
113+
<div class="icon copy" data-tooltip="Click to copy direct link.">
114+
<svg style="width:24px;height:24px" viewBox="0 0 24 24">
115+
<path fill="#000000"
116+
d="M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"/>
117+
</svg>
118+
</div>
119+
</header>
120+
<section class="--grid">
121+
<ul class="--grid-list">
122+
{% for page in languagelistimg %}
123+
{% if page.display_as == "real_dataset" %}
124+
<li style="background-image: url({{site.imgurl}}{{page.thumbnail}});" class="--grid-item">
125+
<a href="{% if page.permalink contains 'http' %}{{page.permalink}}{% else %}/{{page.permalink}}{% endif %}">
126+
<div class="--item-meta"><span>{{page.name}}</span></div>
127+
<div class="--item-image">
128+
<span>View Tutorial</span>
129+
<img src="{{site.imgurl}}{{page.thumbnail}}" alt="{{page.name}}">
130+
</div>
131+
</a>
132+
133+
</li>
134+
135+
{% endif %}
136+
{% endfor %}
137+
</ul>
138+
</section>
139+
</section>
140+
141+
{% endif %}
142+
105143
<!-- END OF SCIKIT CUSTOM LAYOUT -->
106144

107145
<!-- START OF GGPLOT CUSTOM LAYOUT -->

_includes/side-bar.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
<!-- START OF SCIKIT CUSTOM LAYOUT -->
7979
{% elsif page.display_as == "general_examples" %}
8080
{% assign general_examples = true %}
81+
{% elsif page.display_as == "real_dataset" %}
82+
{% assign real_dataset = true %}
8183
<!-- END OF SCIKIT CUSTOM LAYOUT -->
8284
{% endif %}
8385
{% endfor %}
@@ -117,6 +119,8 @@
117119
<a href="{{ BASE_URL }}/javascript/configuration-options/" class="js-splash--navigation-item">Configuration
118120
Options</a>
119121
</li>
122+
{% else %}
123+
{% unless scikit-learn%}
120124

121125
{% else %}
122126
{% unless dashboards %} <!-- dashboards do not have getting started page -->
@@ -131,7 +135,9 @@
131135
</li>
132136
{% endif %}
133137
{% endunless %}
138+
{% endunless %}
134139
{% endif %}
140+
135141

136142
<!-- Cheat Sheets -->
137143
{% if page.language == "plotly_js" or page.language == "r" or page.language == "python" or page.language == "matlab" %}
@@ -337,6 +343,13 @@
337343
{%
338344
endif %}
339345

346+
{% if real_dataset == true %}
347+
<li class="--sidebar-item">
348+
<a href="#real_dataset" class="js-splash--navigation-item">Examples based on real world dataset</a>
349+
</li>
350+
{%
351+
endif %}
352+
340353
{% if dashboards %}
341354
<!--override for dashboards index page -->
342355
<li class="--sidebar-item">

0 commit comments

Comments
 (0)