diff --git a/_libs/landing/landing.js b/_libs/landing/landing.js index 7c6dd6ec..55a7e496 100644 --- a/_libs/landing/landing.js +++ b/_libs/landing/landing.js @@ -51,6 +51,6 @@ document.addEventListener("DOMContentLoaded", function() { // Add click event listener to the div element element.addEventListener('click', function(event) { // Change the location to "/how-to-run-code" - window.location.href = (hosted) ? origin + "/DataScienceTutorials.jl" + "/how-to-run-code" : "/how-to-run-code"; + window.location.href = (hosted) ? origin + "/DataScienceTutorials.jl" + "/info/how-to-run-code" : "/info/how-to-run-code"; }); }); diff --git a/_libs/nav/head.js b/_libs/nav/head.js index cc3d9326..dc1a2f29 100644 --- a/_libs/nav/head.js +++ b/_libs/nav/head.js @@ -4,7 +4,7 @@ const navItems = [ { name: 'Data Basics', // Category name to be shown in navigation bar id: 'data', // id to be manipulated with js - href: '/data', // in case it should link anywhere + href: '/info/data', // in case it should link anywhere sections: [ // list items to be shown in its dropdown and where they link to { name: 'Loading Data', href: '/data/loading/' }, { name: 'Data Frames', href: '/data/dataframe/' }, @@ -17,7 +17,7 @@ const navItems = [ { name: 'Getting Started', id: 'getting-started', - href: '/getting-started', + href: '/info/getting-started', sections: [ { name: 'Choosing a model', href: '/getting-started/choosing-a-model/' }, { name: 'Fit, predict, transform', href: '/getting-started/fit-and-predict/' }, @@ -32,7 +32,7 @@ const navItems = [ { name: 'Intro to Stats Learning', id: 'stats-learning', - href: '/isl', + href: '/info/isl', sections: [ { name: 'Lab 2', href: '/isl/lab-2/' }, { name: 'Lab 3', href: '/isl/lab-3/' }, @@ -49,7 +49,7 @@ const navItems = [ { name: 'End to End', id: 'end-to-end', - href: '/end-to-end', + href: '/info/end-to-end', sections: [ { name: 'Telco Churn', href: '/end-to-end/telco/' }, { name: 'AMES', href: '/end-to-end/AMES/' }, @@ -192,7 +192,7 @@ generateSidebar(navItems); // Flatten the nav items so we can easily iterate through them function flattenNavItems(items) { return items.reduce((acc, item) => { - const mainHrefs = ["/data", "/end-to-end", "/getting-started", "/isl", "#!"]; + const mainHrefs = ["/info/data", "/info/end-to-end", "/info/getting-started", "/info/isl", "#!"]; if (!mainHrefs.includes(item.href)) { acc.push(item); } diff --git a/index.md b/index.md index 509d4045..1ce7bcbe 100644 --- a/index.md +++ b/index.md @@ -29,7 +29,7 @@ What kind of user are you? These are our recommendations for different types of @@tab-content,selected-content ## Completely new to Julia? - Try one of these [external resources](/external-resources): + Try one of these [external resources](/info/external-resources): - [Julia's learning resources page](https://julialang.org/learning/) @@ -54,8 +54,8 @@ What kind of user are you? These are our recommendations for different types of # New to machine learning but have moderate Julia skills? Start out with the [Introduction to Statistical - Learning](/isl) tutorials, or one of - these [external resources](/external-resources): + Learning](/info/isl) tutorials, or one of + these [external resources](/info/external-resources): - [MLCourse](https://github.com/jbrea/MLCourse): Teaching material for 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 To get started with Julia, you can try one of the external resources found in the **New to Julia** tab. Once you have basic Julia competency, try the [Introduction to - Statistical Learning](/isl) - tutorials or one of these [external reources](/external-resources): + Statistical Learning](/info/isl) + tutorials or one of these [external resources](/info/external-resources): - [Julia Data Science](https://github.com/JuliaDataScience/JuliaDataScience): Book diff --git a/data.md b/info/data.md similarity index 100% rename from data.md rename to info/data.md diff --git a/end-to-end.md b/info/end-to-end.md similarity index 100% rename from end-to-end.md rename to info/end-to-end.md diff --git a/external-resources.md b/info/external-resources.md similarity index 100% rename from external-resources.md rename to info/external-resources.md diff --git a/getting-started.md b/info/getting-started.md similarity index 100% rename from getting-started.md rename to info/getting-started.md diff --git a/how-to-run-code.md b/info/how-to-run-code.md similarity index 100% rename from how-to-run-code.md rename to info/how-to-run-code.md diff --git a/isl.md b/info/isl.md similarity index 100% rename from isl.md rename to info/isl.md