Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update existing tutorials #195

Merged
merged 125 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
125 commits
Select commit Hold shift + click to select a range
7942f14
update A-ensemble
ablaom Jan 17, 2024
9f4dd72
update the manifest in A-ensemble again
ablaom Jan 25, 2024
b458eb9
Ignore Conda files and initiate PR
EssamWisam Mar 11, 2024
2b934bc
Update D0-categorical tutorial
EssamWisam Mar 11, 2024
d7b1ec6
Update D0-dataframe tutorial
EssamWisam Mar 11, 2024
28b74d8
Update D0-loading tutorial
EssamWisam Mar 11, 2024
0915542
Update D0-processing tutorial
EssamWisam Mar 11, 2024
8f4d3ad
Update D0-scitype tutorial
EssamWisam Mar 11, 2024
339a56c
Update ISL-lab-10
EssamWisam Mar 11, 2024
728b877
Update ISL-lab-2
EssamWisam Mar 11, 2024
189c6bb
Update ISL-lab-3
EssamWisam Mar 11, 2024
87d126f
Update ISL-lab-4
EssamWisam Mar 11, 2024
e6cd9d1
Update ISL-lab-5
EssamWisam Mar 11, 2024
f126771
Update ISL-lab-6b
EssamWisam Mar 11, 2024
d0714f2
Update ISL-lab-8
EssamWisam Mar 11, 2024
c69a380
Update ISL-lab-9
EssamWisam Mar 11, 2024
ae89d72
Update A-ensembles-2
EssamWisam Mar 11, 2024
5c163eb
Update A-ensembles-3
EssamWisam Mar 11, 2024
ca0a045
Updated A-ensembles
EssamWisam Mar 11, 2024
ddfd5bd
Update A-model-tuning
EssamWisam Mar 11, 2024
ed3107a
Update A-stacking
EssamWisam Mar 11, 2024
2283324
Update A-composing-models
EssamWisam Mar 11, 2024
97cb249
Update A-fit-predict
EssamWisam Mar 11, 2024
1fa1f83
Update A-model-choice
EssamWisam Mar 11, 2024
562851d
Update A-learning-networks
EssamWisam Mar 11, 2024
3048cc9
Update A-learning-networks-2
EssamWisam Mar 11, 2024
5079b1f
Update EX-GLM
EssamWisam Mar 11, 2024
7547653
Update EX-airfoil
EssamWisam Mar 11, 2024
2235ef3
Update EX-boston-flux
EssamWisam Mar 11, 2024
5370ad8
Update EX-breastcancer
EssamWisam Mar 11, 2024
1063440
Update EX-horse
EssamWisam Mar 11, 2024
27e7013
Update EX-houseking
EssamWisam Mar 11, 2024
28284db
Update EX-powergen
EssamWisam Mar 11, 2024
68f5aff
Update EX-wine
EssamWisam Mar 11, 2024
715752f
Update _literate/A-fit-predict/tutorial.jl
EssamWisam Mar 11, 2024
786d5e6
Update _literate/ISL-lab-3/tutorial.jl
EssamWisam Mar 11, 2024
7dd2578
Update _literate/ISL-lab-4/tutorial.jl
EssamWisam Mar 11, 2024
7328842
finish and hook in credit fraud tutorial
ablaom Mar 12, 2024
cf44a7d
stop collapse-script messing with default environment
ablaom Mar 12, 2024
57d9230
fix name of folder for credit fraud tutorial
ablaom Mar 12, 2024
5e957f7
Remove MLJ qualifier from A-ensembles
EssamWisam Mar 12, 2024
d3eb0eb
Use plot recipe in A-model-tuning
EssamWisam Mar 12, 2024
100fdec
Add Plots.jl to EX-airfoil
EssamWisam Mar 12, 2024
a0f9ae7
Remove MLJ qualifier from EX-breastcancer
EssamWisam Mar 12, 2024
6850873
Add plots and lint EX-powegen
EssamWisam Mar 12, 2024
a2d7d32
Add plots to EX-wine and remove MLJ qualifier
EssamWisam Mar 12, 2024
73eee4d
Remove dead comments from EX-breastcancer
EssamWisam Mar 12, 2024
eaa5deb
Add linting to ISL-lab-6b
EssamWisam Mar 12, 2024
90dc3af
Change Pkg.update() to Pkg.instantiate()
EssamWisam Mar 12, 2024
114bc13
Merge remote-tracking branch 'origin/fix-plots' into reinstate-credit…
ablaom Mar 12, 2024
073072b
title change: Credit Fraud -> Credit Card Fraud
ablaom Mar 12, 2024
93dc4ee
Merge branch 'fix-plots' into mljbase-1-1-update-take3
ablaom Mar 12, 2024
3043026
Merge pull request #197 from JuliaAI/mljbase-1-1-update-take3
EssamWisam Mar 12, 2024
e3ce015
Merge pull request #196 from JuliaAI/reinstate-credit-fraud
EssamWisam Mar 12, 2024
e3ee280
fix learning networks in A-ensembles-3
ablaom Mar 13, 2024
5338a8b
fix learning networks in A-stacking tutorial
ablaom Mar 13, 2024
bdb8967
update Composing Models tute
ablaom Mar 13, 2024
9a09a88
clean up some "deprecated" uses of unpack
ablaom Mar 13, 2024
1b257c1
Merge pull request #198 from JuliaAI/A-tutorial-issues
EssamWisam Mar 13, 2024
7ce67e9
Merge pull request #199 from JuliaAI/composing-models-tutorial-update
EssamWisam Mar 13, 2024
e26a186
fix ISL-lab-6b tutorial
ablaom Mar 13, 2024
01690ef
fix EX-AMES tute
ablaom Mar 14, 2024
d4fc183
update EX-boston-lgbm tutorial
ablaom Mar 14, 2024
9a7e34d
fix EX-crabs-xgb tutorial
ablaom Mar 14, 2024
2e2d40f
update EX-telco
ablaom Mar 17, 2024
3740b63
remove tutorial on learning newtorks 1 and 2, and hooks into site
ablaom Mar 18, 2024
da9b6e9
Merge pull request #200 from JuliaAI/isl-lab-6b
EssamWisam Mar 18, 2024
9d8e392
Merge pull request #203 from JuliaAI/remove-learning-network-tutes
EssamWisam Mar 18, 2024
33c2f9f
Merge pull request #201 from JuliaAI/fix-end-to-end
EssamWisam Mar 18, 2024
6288882
Merge pull request #202 from JuliaAI/telco-update
EssamWisam Mar 18, 2024
6889afa
Remove minor comment (old commit)
EssamWisam Mar 18, 2024
3152fb6
Add Project.toml and Manifest.toml for credit fraud tutorial
EssamWisam Mar 18, 2024
a9d4324
Make serving pass
EssamWisam Mar 18, 2024
e726da5
Add CSV to D0-processing
EssamWisam Mar 18, 2024
6188956
Prevent tuning and processing tutorials from printing savefig path
EssamWisam Mar 18, 2024
aa0da25
Completely remove comments in prefit that sometimes break serve
EssamWisam Mar 19, 2024
4f0cd5e
Add semicolons to collapse figure path outputs for the rest of the tu…
EssamWisam Mar 19, 2024
5026fc1
Fix ISL-Lab-2 comment
EssamWisam Mar 19, 2024
9991926
Fix typo in ISL-4 lab
EssamWisam Mar 19, 2024
70709f0
Better model name printing in stacking lab
EssamWisam Mar 19, 2024
3a634d4
Increase font sizes
EssamWisam Mar 25, 2024
98e46d4
revise horse tutorial
ablaom Mar 26, 2024
0660591
in crabs tutorial, swap out cross entropy for brier loss
ablaom Mar 26, 2024
18ece5e
revise wine tutorial
ablaom Mar 26, 2024
f0ab986
fix flipped knn/ridge models mix to resolve inconsistency
ablaom Mar 26, 2024
4948de6
revise breast cancer tute to remove PythonCall dep
ablaom Mar 26, 2024
793d3cd
Merge pull request #205 from JuliaAI/horse-revision
EssamWisam Mar 26, 2024
cad0593
Merge pull request #206 from JuliaAI/revise-crabs
EssamWisam Mar 26, 2024
158fb74
Merge pull request #207 from JuliaAI/revise-wine
EssamWisam Mar 26, 2024
496c521
Merge pull request #208 from JuliaAI/revise-ames
EssamWisam Mar 26, 2024
4b8dec4
Merge pull request #209 from JuliaAI/revise-breast
EssamWisam Mar 26, 2024
8c033cf
Merge branch 'fix-plots' into minor-plots-and-tutorial-validation
EssamWisam Mar 26, 2024
298c1cb
Updating plots and other packages
EssamWisam Apr 1, 2024
a2e1832
Mute two long outputs and eliminate loop comments
EssamWisam Apr 1, 2024
a461988
Fix image sizes in the website
EssamWisam Apr 1, 2024
9fc5474
Remove learning networks from other navigation bar
EssamWisam Apr 1, 2024
668d04f
Add Credit Fraud Tutorial to other navigation bar
EssamWisam Apr 1, 2024
4ebd323
Add new advanced category with Ensembles (3) tutorial
EssamWisam Apr 1, 2024
baa0e63
Revert "Add new advanced category with Ensembles (3) tutorial"
EssamWisam Apr 1, 2024
3e15104
Add new advanced category with Ensembles (3) tutorial --fix commit
EssamWisam Apr 1, 2024
2eabb9c
Merge pull request #210 from JuliaAI/fix-nav
EssamWisam Apr 2, 2024
ea58317
Centralize the index and add local navigation functionality
EssamWisam Apr 2, 2024
3ee52e0
Remove moved tutorial
EssamWisam Apr 2, 2024
5a6c832
Update README for adding new tutorial
EssamWisam Apr 8, 2024
a441b41
Merge pull request #211 from JuliaAI/fix-nav
EssamWisam Apr 8, 2024
cd51549
Add Project.toml to root of the project
EssamWisam Apr 8, 2024
f0913b4
Remove deprecated tutorials and fix external sources
EssamWisam Apr 8, 2024
93ec89a
Remember selected tab after navigation
EssamWisam Apr 8, 2024
5bbff3e
Remove reference to inexistent new_to_julia page
EssamWisam Apr 8, 2024
4ccbf28
Add missing markdowns (pages) that were present in skeleton
EssamWisam Apr 8, 2024
76178e5
Fix reference to the intro-to-stats learning page
EssamWisam Apr 8, 2024
f4fcf9d
Merge pull request #204 from JuliaAI/minor-plots-and-tutorial-validation
EssamWisam Apr 8, 2024
30795e2
Comment out LightGMT tutorial
EssamWisam Apr 8, 2024
8b76343
Fix figures and long output in EX-creditfraud
EssamWisam Apr 8, 2024
cecaea8
Fix ensembles-3
EssamWisam Apr 8, 2024
db59395
Revert "Fix ensembles-3"
EssamWisam Apr 8, 2024
bfa9aed
Fix ensembles-3
EssamWisam Apr 8, 2024
6554117
Let clicking on the nav bar item render the corresponding page from t…
EssamWisam Apr 8, 2024
20c4ffe
Revert "Let clicking on the nav bar item render the corresponding pag…
EssamWisam Apr 8, 2024
57d7b08
Let navigation bar items link to corresponding page from skeleton
EssamWisam Apr 8, 2024
653bccc
Remove useless trace of supposedly removed folder
EssamWisam Apr 9, 2024
d3ac4cf
Add Node.js as a permanent dependency in Project.toml
EssamWisam Apr 9, 2024
7b661e2
Minor style improvements
EssamWisam Apr 9, 2024
21645f7
Revert "Add Node.js as a permanent dependency in Project.toml"
EssamWisam Apr 9, 2024
dbf55a9
Properly add NodeJS as dependency in Project.toml
EssamWisam Apr 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ test/*.svg
/*.svg
node_modules/
package-lock.json
.CondaPkg
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
Franklin = "713c75ef-9fc9-4b05-94a9-213340da978e"
NodeJS = "2bd173c7-0d6d-553b-b6af-13a54713934c"
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,7 @@ Find the corresponding script, fix it in a PR.
Once all that's done, the remaining things to do are to create the HTML page and a link in the appropriate location. Let's assume you wanted to add an E2E tutorial "Dinosaurs" then in the previous step you'd have `EX-dinosaurs` and you would

* create a file `dinosaurs.md` in `end-to-end/` by duplicating the `end-to-end/wine.md` and changing the reference in it to `\tutorial{EX-dinosaurs}`
* add links pointing to that tutorial
* in `index.md` following the template
* in `_layout/head.html` following the template
* add a link pointing to that tutorial in `_libs/nav/head.js` following the template so your tutorial shows in the navigation bar
* lastly, to make sections in your tutorial collapsible like other tutorials run the `collapse-script.jl` file via `julia collapse-script.jl`


Expand Down
2 changes: 1 addition & 1 deletion _css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ li.pure-menu-sublist-title {
list-style-type: square;
}

ul#e2e.pure-menu-sublist {
ul#adv.pure-menu-sublist {
margin-bottom: 7em;
}

Expand Down
4 changes: 2 additions & 2 deletions _css/franklin.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,9 @@ html {
================================================================== */

.franklin-content img {
width: 70%;
width: 40%;
text-align: center;
padding-left: 10%; }
padding-left: 5%; }

.franklin-content .img-small img {
width: 50%;
Expand Down
42 changes: 41 additions & 1 deletion _css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,16 @@
}

/* hide if screen size is from 900 to 1000 */
@media screen and (max-width: 1200px) {
@media screen and (max-width: 1300px) {
.brand {
display: none;
}
}

a#home {
border-radius: 3rem;
}

.brand a,
.brand a:visited {
text-decoration: none;
Expand Down Expand Up @@ -116,3 +121,38 @@ nav ul li ul li a {
background-color: #f1f1f1;

}

.bottom-nav-container {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
margin-bottom: -2rem;

}

.bottom-nav {
background-color: #f1f1f1;
font-weight: 600;
padding: 8px 8px;
color: #2e2e2e;
border-radius: 45px;
outline: none;
text-align: center;
cursor: pointer;
transition: background-color 0.3s, color 0.3s;
display: flex;
flex-direction: column;
align-items: center;
text-decoration: none;
width: 200px;
border: 2px solid #c1c1c1;
}
.bottom-nav:hover {
background-color: #9b59b6;
color: #f1f1f1;
}
.button-label {
font-size: 0.9rem;
font-weight: 400;
}
2 changes: 1 addition & 1 deletion _css/side-menu.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ The content `<div>` is where all your content goes.
height: 40px;
}
/* media queries for header */
@media only screen and (max-width: 800px) {
@media only screen and (max-width: 1200px) {
.header h1::before {
display: none;
}
Expand Down
40 changes: 22 additions & 18 deletions _layout/foot.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
<!-- CONTENT ENDS HERE -->
</div> <!-- end of id=main -->
</div> <!-- end of id=layout -->
<!-- for collapse functionality -->
<script src="/libs/collapse/collapse.js"></script>
<script src="/libs/pure/ui.min.js"></script>
<!-- navigation bar -->
<script src="/libs/nav/nav.js"></script>
<!-- responsive navigation bar -->
<script src="/libs/nav/responsive.js"></script>
<!-- landing page -->
<script src="/libs/landing/landing.js"></script>
{{ if hasmath }}
{{ insert foot_katex.html }}
{{ end }}
{{ if hascode }}
{{ insert foot_highlight.html }}
{{ end }}
</div> <!-- end of id=main -->
</div> <!-- end of id=layout -->
<!-- for collapse functionality -->
<script src="/libs/collapse/collapse.js"></script>
<script src="/libs/pure/ui.min.js"></script>
<!-- head and footer-nav -->
<script src="/libs/nav/head.js"></script>
<script src="/libs/nav/footer-nav.js"></script>
<!-- landing page -->
<script src="/libs/landing/landing.js"></script>
<!-- navigation bar -->
<script src="/libs/nav/nav.js"></script>
<!-- responsive navigation bar -->
<script src="/libs/nav/responsive.js"></script>
{{ if hasmath }}
{{ insert foot_katex.html }}
{{ end }}
{{ if hascode }}
{{ insert foot_highlight.html }}
{{ end }}
</body>
</html>

</html>
141 changes: 37 additions & 104 deletions _layout/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,25 +88,12 @@
Ensembles</a></li>
<li class="pure-menu-item {{ispage getting-started/ensembles-2/index.html}}pure-menu-selected{{end}}"><a
href="/getting-started/ensembles-2/" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Ensembles (2)</a></li>
<li class="pure-menu-item {{ispage getting-started/ensembles-3/index.html}}pure-menu-selected{{end}}"><a
href="/getting-started/ensembles-3/" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Ensembles (3)</a></li>
style="padding-right:0.5rem;">•</span> Ensembles 2</a></li>
<li
class="pure-menu-item {{ispage getting-started/composing-models/index.html}}pure-menu-selected{{end}}">
<a href="/getting-started/composing-models/" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Composing models</a>
</li>
<li
class="pure-menu-item {{ispage getting-started/learning-networks/index.html}}pure-menu-selected{{end}}">
<a href="/getting-started/learning-networks/" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Learning networks</a>
</li>
<li
class="pure-menu-item {{ispage getting-started/learning-networks-2/index.html}}pure-menu-selected{{end}}">
<a href="/getting-started/learning-networks-2/" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Learning networks (2)</a>
</li>
<li class="pure-menu-item {{ispage getting-started/stacking/index.html}}pure-menu-selected{{end}}"><a
href="/getting-started/stacking/" class="pure-menu-link"><span style="padding-right:0.5rem;">•</span>
Stacking</a></li>
Expand Down Expand Up @@ -136,12 +123,12 @@
style="padding-right:0.5rem;">•</span> Lab 10</a></li>
</ul>
</div>
<!-- END TO END EXAMPLES -->
<!-- End to End -->
<div class="dropdown">
<li class="pure-menu-sublist-title"><strong>End to End Examples</strong></li>
<li class="pure-menu-sublist-title"><strong>End to End</strong></li>
</div>
<div class="dropdown-content collapse">
<ul class="pure-menu-sublist" id=e2e>
<ul class="pure-menu-sublist" >
<li class="pure-menu-item {{ispage end-to-end/telco/index.html}}pure-menu-selected{{end}}"><a
href="/end-to-end/telco/" class="pure-menu-link"><span style="padding-right:0.5rem;">•</span>Telco
Churn</a></li>
Expand Down Expand Up @@ -169,97 +156,43 @@
style="padding-right:0.5rem;">•</span> Boston (Flux) </a></li>
<li class="pure-menu-item "><a href="/end-to-end/breastcancer" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Breast Cancer</a></li>
<li class="pure-menu-item "><a href="/end-to-end/creditfraud" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Credit Fraud</a></li>
</ul>
</div>
<!-- ADVANCED EXAMPLES -->
<div class="dropdown">
<li class="pure-menu-sublist-title"><strong>Advanced Examples</strong></li>
</div>
<div class="dropdown-content collapse">
<ul class="pure-menu-sublist" id=adv>
<li class="pure-menu-item "><a href="/advanced/ensembles-3/" class="pure-menu-link"><span
style="padding-right:0.5rem;">•</span> Ensembles (3)</a></li>
</ul>
</div>
</ul>
<!-- END OF LIST OF MENU ITEMS -->
</div>
</ul>
<!-- END OF LIST OF MENU ITEMS -->
</div>
<div id="nav" class="navigation">
<div class="nav-container">
<div class="brand">
<a href="/">DataScienceTutorials.jl</a>
</div>
<nav>
<div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
<ul class="nav-list">
<li>
<a id="home" class="main-nav-item" style="border-radius: 2rem 2rem 2rem 2rem;" href="/">Home</a>
</li>
<li>
<a class="main-nav-item" id="data" href="#!">Data Basics</a>
<ul class="nav-dropdown">
<li class="short-item"><a href="/data/loading/">Loading data</a></li>
<li class="short-item"><a href="/data/dataframe/">Data Frames</a></li>
<li class="short-item"><a href="/data/categorical/">Categorical Arrays</a></li>
<li class="short-item"><a href="/data/scitype/">Scientific Type</a></li>
<li class="short-item"><a href="/data/processing/">Data processing</a></li>
</ul>
</li>
<li>
<a class="main-nav-item" id="getting-started" href="#!">Getting Started</a>
<ul class="nav-dropdown">
<li>
<a href="/getting-started/choosing-a-model/"> Choosing a model</a>
</li>
<li>
<a href="/getting-started/fit-and-predict/"> Fit, predict, transform</a>
</li>
<li class="medium-item"><a href="/getting-started/model-tuning/"> Model tuning</a></li>
<li class="medium-item"><a href="/getting-started/ensembles/"> Ensembles</a></li>
<li class="medium-item"><a href="/getting-started/ensembles-2/"> Ensembles (2)</a></li>
<li class="medium-item"><a href="/getting-started/ensembles-3/"> Ensembles (3)</a></li>
<li class="medium-item"><a href="/getting-started/composing-models/"> Composing models</a></li>
<li class="medium-item"><a href="/getting-started/learning-networks/"> Learning networks</a></li>
<li class="medium-item"><a href="/getting-started/learning-networks-2/"> Learning networks (2)</a></li>
<li class="medium-item"><a href="/getting-started/stacking/"> Stacking</a></li>
</ul>
</li>
<li>
<a class="main-nav-item" id="stats-learning" href="#!">Intro to Stats Learning</a>
<ul class="nav-dropdown">
<li class="long-item"><a href="/isl/lab-2/"> Lab 2</a></li>
<li class="long-item"><a href="/isl/lab-3/"> Lab 3</a></li>
<li class="long-item"><a href="/isl/lab-4/"> Lab 4</a></li>
<li class="long-item"><a href="/isl/lab-5/"> Lab 5</a></li>
<li class="long-item"><a href="/isl/lab-6b/"> Lab 6b</a></li>
<li class="long-item"><a href="/isl/lab-8/"> Lab 8</a></li>
<li class="long-item"><a href="/isl/lab-9/"> Lab 9</a></li>
<li class="long-item"><a href="/isl/lab-10/"> Lab 10</a></li>
</ul>
</li>
<li>
<a class="main-nav-item" href="#!" id="end-to-end">End to End Examples</a>
<ul class="nav-dropdown">
<li class="long-item"><a href="/end-to-end/telco/">Telco Churn</a></li>
<li class="long-item"><a href="/end-to-end/AMES/"> AMES</a></li>
<li class="long-item"><a href="/end-to-end/wine/"> Wine</a></li>
<li class="long-item"><a href="/end-to-end/crabs-xgb/"> Crabs (XGB)</a></li>
<li class="long-item"><a href="/end-to-end/horse/"> Horse</a></li>
<li class="long-item"><a href="/end-to-end/HouseKingCounty/"> King County Houses</a></li>
<li class="long-item"><a href="/end-to-end/airfoil"> Airfoil </a></li>
<li class="long-item"><a href="/end-to-end/boston-lgbm"> Boston (lgbm) </a></li>
<li class="long-item"><a href="/end-to-end/glm/"> Using GLM.jl </a></li>
<li class="long-item"><a href="/end-to-end/powergen/"> Power Generation </a></li>
<li class="long-item"><a href="/end-to-end/boston-flux"> Boston (Flux) </a></li>
<li class="long-item"><a href="/end-to-end/breastcancer"> Breast Cancer</a></li>
</ul>
</li>
<li>
<form id="lunrSearchForm" name="lunrSearchForm" style="margin-left: 1.5rem; margin-right: -2rem;">
<input class="search-input" name="q" placeholder="Search..." type="text">
<input type="submit" value="Search" formaction="/search/index.html" style="display:none">
</form>
</li>
</ul>
</nav>
</div>
<div id="nav" class="navigation">
<div class="nav-container">
<div class="brand">
<a href="/">DataScienceTutorials.jl</a>
</div>
<nav>
<div class="nav-mobile"><a id="nav-toggle" href="#!"><span></span></a></div>
<ul class="nav-list">
<!-- horizontal navigation bar gets injected -->
</ul>
</nav>
</div>
<div id="main"> <!-- Closed in foot -->
{{ispage index.html}}
<div class="header">
<h1>{{fill title}}</h1>
</div>
{{end}}
</div>
<div id="main"> <!-- Closed in foot -->
{{ispage index.html}}
<div class="header">
<h1>{{fill title}}</h1>
</div>
{{end}}

<!-- Content appended here -->
<!-- Content appended here -->
15 changes: 13 additions & 2 deletions _layout/page_foot.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
<div class="bottom-nav-container">
<a id="prev-tutorial" style="text-decoration: none"><Button class="bottom-nav">
<div>← Previous Tutorial</div>
<div id="prev-label" class="button-label"> Home</div>
</Button></a>
<a id="next-tutorial" style="text-decoration: none"><Button class="bottom-nav">
<div>Next Tutorial →</div>
<div id="next-label" class="button-label">Home</div>
</Button></a>
</div>
<div class="page-foot">
<div class="copyright">
&copy; {{ fill author }}. Last modified: {{ fill fd_mtime }}. Website built with <a href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a>.
&copy; {{ fill author }}. Last modified: {{ fill fd_mtime }}. Website built with <a
href="https://github.com/tlienart/Franklin.jl">Franklin.jl</a>.
</div>
</div>
</div>
21 changes: 21 additions & 0 deletions _libs/landing/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,27 @@ tabContainer.addEventListener('click', function(event) {
const index = Array.from(tabs).indexOf(event.target);
// add "selected-content" class to the corresponding content
tabContents[index].classList.add('selected-content');

// Store the selected tab index in local storage
localStorage.setItem('selectedTabIndex', index.toString());
});

// Restore selected tab on page load
document.addEventListener("DOMContentLoaded", function() {
// Get the stored index from local storage
const storedIndex = localStorage.getItem('selectedTabIndex');
if (storedIndex !== null) {
const index = parseInt(storedIndex);
// Get all tabs and select the one corresponding to the stored index
const tabs = tabContainer.querySelectorAll('.get-started-tab');
tabs.forEach(tab => tab.classList.remove('selected'));
tabs[index].classList.add('selected');

// Get all tab contents and select the one corresponding to the stored index
const tabContents = document.querySelectorAll('.tab-content');
tabContents.forEach(tab => tab.classList.remove('selected-content'));
tabContents[index].classList.add('selected-content');
}
});

// make the button link to how-to-run-code
Expand Down
Loading
Loading