Skip to content

Commit

Permalink
Group info pages under an info folder and route
Browse files Browse the repository at this point in the history
  • Loading branch information
EssamWisam committed Apr 15, 2024
1 parent a314c02 commit f41e64c
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _libs/landing/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
});
});
10 changes: 5 additions & 5 deletions _libs/nav/head.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/' },
Expand All @@ -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/' },
Expand All @@ -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/' },
Expand All @@ -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/' },
Expand Down Expand Up @@ -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);
}
Expand Down
10 changes: 5 additions & 5 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand All @@ -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
Expand All @@ -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
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit f41e64c

Please sign in to comment.