Skip to content

Commit f41e64c

Browse files
committed
Group info pages under an info folder and route
1 parent a314c02 commit f41e64c

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

_libs/landing/landing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ document.addEventListener("DOMContentLoaded", function() {
5151
// Add click event listener to the div element
5252
element.addEventListener('click', function(event) {
5353
// Change the location to "/how-to-run-code"
54-
window.location.href = (hosted) ? origin + "/DataScienceTutorials.jl" + "/how-to-run-code" : "/how-to-run-code";
54+
window.location.href = (hosted) ? origin + "/DataScienceTutorials.jl" + "/info/how-to-run-code" : "/info/how-to-run-code";
5555
});
5656
});

_libs/nav/head.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const navItems = [
44
{
55
name: 'Data Basics', // Category name to be shown in navigation bar
66
id: 'data', // id to be manipulated with js
7-
href: '/data', // in case it should link anywhere
7+
href: '/info/data', // in case it should link anywhere
88
sections: [ // list items to be shown in its dropdown and where they link to
99
{ name: 'Loading Data', href: '/data/loading/' },
1010
{ name: 'Data Frames', href: '/data/dataframe/' },
@@ -17,7 +17,7 @@ const navItems = [
1717
{
1818
name: 'Getting Started',
1919
id: 'getting-started',
20-
href: '/getting-started',
20+
href: '/info/getting-started',
2121
sections: [
2222
{ name: 'Choosing a model', href: '/getting-started/choosing-a-model/' },
2323
{ name: 'Fit, predict, transform', href: '/getting-started/fit-and-predict/' },
@@ -32,7 +32,7 @@ const navItems = [
3232
{
3333
name: 'Intro to Stats Learning',
3434
id: 'stats-learning',
35-
href: '/isl',
35+
href: '/info/isl',
3636
sections: [
3737
{ name: 'Lab 2', href: '/isl/lab-2/' },
3838
{ name: 'Lab 3', href: '/isl/lab-3/' },
@@ -49,7 +49,7 @@ const navItems = [
4949
{
5050
name: 'End to End',
5151
id: 'end-to-end',
52-
href: '/end-to-end',
52+
href: '/info/end-to-end',
5353
sections: [
5454
{ name: 'Telco Churn', href: '/end-to-end/telco/' },
5555
{ name: 'AMES', href: '/end-to-end/AMES/' },
@@ -192,7 +192,7 @@ generateSidebar(navItems);
192192
// Flatten the nav items so we can easily iterate through them
193193
function flattenNavItems(items) {
194194
return items.reduce((acc, item) => {
195-
const mainHrefs = ["/data", "/end-to-end", "/getting-started", "/isl", "#!"];
195+
const mainHrefs = ["/info/data", "/info/end-to-end", "/info/getting-started", "/info/isl", "#!"];
196196
if (!mainHrefs.includes(item.href)) {
197197
acc.push(item);
198198
}

index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ What kind of user are you? These are our recommendations for different types of
2929
@@tab-content,selected-content
3030
## Completely new to Julia?
3131

32-
Try one of these [external resources](/external-resources):
32+
Try one of these [external resources](/info/external-resources):
3333

3434
- [Julia's learning resources page](https://julialang.org/learning/)
3535

@@ -54,8 +54,8 @@ What kind of user are you? These are our recommendations for different types of
5454
# New to machine learning but have moderate Julia skills?
5555

5656
Start out with the [Introduction to Statistical
57-
Learning](/isl) tutorials, or one of
58-
these [external resources](/external-resources):
57+
Learning](/info/isl) tutorials, or one of
58+
these [external resources](/info/external-resources):
5959

6060
- [MLCourse](https://github.com/jbrea/MLCourse): Teaching material for
6161
an introductory machine learning course at EPFL (for an interactive
@@ -72,8 +72,8 @@ What kind of user are you? These are our recommendations for different types of
7272
To get started with Julia, you can try one of the external resources found in the **New to Julia** tab.
7373

7474
Once you have basic Julia competency, try the [Introduction to
75-
Statistical Learning](/isl)
76-
tutorials or one of these [external reources](/external-resources):
75+
Statistical Learning](/info/isl)
76+
tutorials or one of these [external resources](/info/external-resources):
7777

7878
- [Julia Data
7979
Science](https://github.com/JuliaDataScience/JuliaDataScience): Book

data.md renamed to info/data.md

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

isl.md renamed to info/isl.md

File renamed without changes.

0 commit comments

Comments
 (0)