This commit is contained in:
Trance-0
2025-11-24 16:11:57 -06:00
parent 8b579a7873
commit 1c54bf0b26
25 changed files with 2185 additions and 90 deletions

View File

@@ -1,11 +1,4 @@
export default {
/**
* Do not remove the labels "Math Courses Start"
* and "Math Courses End" and "CSE Courses Start" and "CSE Courses End"
* or the separated builds will not work.
*
* WE USE THESE LABELS TO BUILD THE SEPARATED WEBSITES FOR MATH AND CSE COURSES.
*/
menu: {
title: 'Home',
type: 'menu',
@@ -24,43 +17,6 @@ export default {
}
},
},
/* Load link with relative path */
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
/* Math Courses Start */
Math3200: {
title: 'Math3200',
type: 'page',
@@ -110,43 +66,6 @@ export default {
timestamp: true,
}
},
/* Math Courses End */
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
/* CSE Courses Start */
CSE332S: {
title: 'CSE332S',
type: 'page',
@@ -196,7 +115,6 @@ export default {
timestamp: true,
}
},
/* CSE Courses End */
Swap: {
display: 'hidden',
theme:{

119
distribute/CSE332S/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S:{
title: 'CSE332S',
type: 'page',
theme:{
timestamp: true,
}
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/CSE347/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347:{
title: 'CSE347',
type: 'page',
theme:{
timestamp: true,
}
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/CSE442T/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T:{
title: 'CSE442T',
type: 'page',
theme:{
timestamp: true,
}
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/CSE510/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510:{
title: 'CSE510',
type: 'page',
theme:{
timestamp: true,
}
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/CSE5313/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313:{
title: 'CSE5313',
type: 'page',
theme:{
timestamp: true,
}
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/CSE5519/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519:{
title: 'CSE5519',
type: 'page',
theme:{
timestamp: true,
}
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/CSE559A/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A:{
title: 'CSE559A',
type: 'page',
theme:{
timestamp: true,
}
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200:{
title: 'Math3200',
type: 'page',
theme:{
timestamp: true,
}
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/Math401/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401:{
title: 'Math401',
type: 'page',
theme:{
timestamp: true,
}
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111:{
title: 'Math4111',
type: 'page',
theme:{
timestamp: true,
}
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121:{
title: 'Math4121',
type: 'page',
theme:{
timestamp: true,
}
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/Math416/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416:{
title: 'Math416',
type: 'page',
theme:{
timestamp: true,
}
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201:{
title: 'Math4201',
type: 'page',
theme:{
timestamp: true,
}
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

119
distribute/Math429/_meta.js Normal file
View File

@@ -0,0 +1,119 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429:{
title: 'Math429',
type: 'page',
theme:{
timestamp: true,
}
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

117
distribute/Swap/_meta.js Normal file
View File

@@ -0,0 +1,117 @@
export default {
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

49
distribute/create_meta.py Normal file
View File

@@ -0,0 +1,49 @@
"""
This script is used to generate _meta.js file for microservice deployment for this project.
We will use nginx to route traffic to different microservices.
Each microservice will have its own _meta.js file, run prebuild.sh to replace _meta.js
before building the microservice.
This script should run when you add a new microservice (add course for your note)
"""
# easy python script to create meta file for each subdirectory to replace
import os
import json
from pathlib import Path
import re
cwd = Path(os.path.dirname(os.path.abspath(__file__)))
root_dir=Path.joinpath(cwd.parent, 'content')
# consider each subdirectory as a course
sub_dirs=os.listdir(root_dir)
# exclude .md and _meta.js
exclude_reg=r'(\.md|_meta.js)'
sub_dirs=[x for x in sub_dirs if not re.search(exclude_reg, x)]
print (sub_dirs)
meta_file = os.path.join(root_dir, '_meta.js')
# auto generate meta files
course_match=r"(\w+\d+.*)\s*:\s*(\{\s+.+\s+.+)\s+.+\s+.+\s+.+\s+(\},)"
link_parse=r"\1_link: \2\n href: '/\1'\n \3"
link_match=r"_link\s*:\s*(\{\s+.+\s+.+)\s+.+\s+.+\s+.+\s+(\},)"
course_parse=r":\1\n theme:{\n timestamp: true,\n }\n \2"
# copy new _meta.js
for sub_dir in sub_dirs:
sub_meta_file=os.path.join(cwd, sub_dir, '_meta.js')
full_text=Path(meta_file).read_text()
matches=re.findall(course_match, full_text)
new_text=re.sub(course_match, link_parse, full_text)
print(f'parsed link file: {new_text}')
cur_link_match=r'{}{}'.format(sub_dir,link_match)
cur_course_match=r'{}{}'.format(sub_dir,course_parse)
print(f'new reg: {cur_link_match}, {cur_course_match}')
new_text=re.sub(cur_link_match, cur_course_match, new_text)
print (f'parsed course file: {new_text}')
# create directory if not exist
Path(sub_meta_file).parent.mkdir(parents=True, exist_ok=True)
Path(sub_meta_file).write_text(new_text)

View File

@@ -0,0 +1,43 @@
import nextra from 'nextra'
import withBundleAnalyzer from '@next/bundle-analyzer'
const withNextra = nextra({
latex: {
renderer: 'katex',
options: {
// suppress warnings from katex for `\\`
strict: false,
}
},
mdxOptions: {
format: 'detect'
},
contentDirBasePath: '/'
})
const bundleAnalyzer = withBundleAnalyzer({
enabled: process.env.ANALYZE === 'true'
})
export default bundleAnalyzer(withNextra({
// static export start
output: 'export',
images: {
unoptimized: true // mandatory, otherwise won't export
},
// static export end
// eslint: {
// ignoreDuringBuilds: true,
// },
// compiler: {
// // enable console log in production
// removeConsole: false,
// },
// experimental: {
// webpackMemoryOptimizations: true,
// staticGenerationMaxConcurrency: 2, // try 13, default is 8
// staticGenerationMinPagesPerWorker: 1 // keep small, default is 25
// }
}))

59
distribute/prebuild.sh Normal file
View File

@@ -0,0 +1,59 @@
# This is pre-build script that cleans up resources and compiles for selected pages, then finally you may combine those subdirectories into one via nginx.
# double check you are using LF instead of CRLF
# please run this script in project root directory
export KEEP_PAGES="Math3200"
# check if environment variable is set
if [ -z "$KEEP_PAGES" ]; then
echo "Please set environment variable KEEP_PAGES to the pages you want to keep for microsite building."
exit 1
fi
echo "Currently compiling pages: ${KEEP_PAGES}"
# Rewrite base _meta.js and next.config.js for export pages
echo "Rewrite base _meta.js and keeping ${KEEP_PAGES}"
cp "./distribute/${KEEP_PAGES}/_meta.js" "./content/_meta.js"
# remove other subdirectories
for dir in ./content/*/; do
# strip the leading path and trailing slash
base_dir="$(basename "${dir%/}")"
# check if base_dir is in KEEP_PAGES (space-separated list)
case " $KEEP_PAGES " in
*" $base_dir "*)
echo "Keeping content dir: $dir"
;;
*)
echo "Removing content dir: $dir"
rm -rf -- "$dir"
;;
esac
done
# remove public directory
for dir in ./public/*/; do
base_dir="$(basename "${dir%/}")"
case " $KEEP_PAGES " in
*" $base_dir "*)
echo "Keeping public dir: $dir"
;;
*)
echo "Removing public dir: $dir"
rm -rf -- "$dir"
;;
esac
done
echo "Done clearing up resources and compiling for ${KEEP_PAGES}"
echo "modify next.config.js"
cp "./distribute/next.config.mjs" "./next.config.mjs"

8
docker/Jenkinsfile vendored
View File

@@ -28,6 +28,14 @@ pipeline {
])
}
}
stage('Pre-build script') {
steps{
script {
echo "Running pre-build script"
sh "./docker/prebuild.sh"
}
}
}
stage("Build and test"){
parallel {
stage("Build Math") {

3
docker/README.md Normal file
View File

@@ -0,0 +1,3 @@
# Notice
To build via docker, run the ./prebuild.sh script before building the docker image, this script will update the meta.json file for parsing scripts in docker.

227
docker/_meta.js Normal file
View File

@@ -0,0 +1,227 @@
export default {
/**
* Do not remove the labels "Math Courses Start"
* and "Math Courses End" and "CSE Courses Start" and "CSE Courses End"
* or the separated builds will not work.
*
* WE USE THESE LABELS TO BUILD THE SEPARATED WEBSITES FOR MATH AND CSE COURSES.
*/
menu: {
title: 'Home',
type: 'menu',
items: {
index: {
title: 'Home',
href: '/'
},
about: {
title: 'About',
href: '/about'
},
contact: {
title: 'Contact Me',
href: '/contact'
}
},
},
/* Load link with relative path */
Math3200_link: {
title: 'Math3200',
type: 'page',
href: '/Math3200'
},
Math429_link: {
title: 'Math429',
type: 'page',
href: '/Math429'
},
Math4111_link: {
title: 'Math4111',
type: 'page',
href: '/Math4111'
},
Math4121_link: {
title: 'Math4121',
type: 'page',
href: '/Math4121'
},
Math4201_link: {
title: 'Math4201',
type: 'page',
href: '/Math4201'
},
Math416_link: {
title: 'Math416',
type: 'page',
href: '/Math416'
},
Math401_link: {
title: 'Math401',
type: 'page',
href: '/Math401'
},
/* Math Courses Start */
Math3200: {
title: 'Math3200',
type: 'page',
theme:{
timestamp: true,
}
},
Math429:{
title: 'Math429',
type: 'page',
theme:{
timestamp: true,
}
},
Math4111: {
title: 'Math4111',
type: 'page',
theme:{
timestamp: true,
}
},
Math4121: {
title: 'Math4121',
type: 'page',
theme:{
timestamp: true,
}
},
Math4201: {
title: 'Math4201',
type: 'page',
theme:{
timestamp: true,
}
},
Math416: {
title: 'Math416',
type: 'page',
theme:{
timestamp: true,
}
},
Math401: {
title: 'Math401',
type: 'page',
theme:{
timestamp: true,
}
},
/* Math Courses End */
CSE332S_link: {
title: 'CSE332S',
type: 'page',
href: '/CSE332S'
},
CSE347_link: {
title: 'CSE347',
type: 'page',
href: '/CSE347'
},
CSE442T_link: {
title: 'CSE442T',
type: 'page',
href: '/CSE442T'
},
CSE5313_link: {
title: 'CSE5313',
type: 'page',
href: '/CSE5313'
},
CSE510_link: {
title: 'CSE510',
type: 'page',
href: '/CSE510'
},
CSE559A_link: {
title: 'CSE559A',
type: 'page',
href: '/CSE559A'
},
CSE5519_link: {
title: 'CSE5519',
type: 'page',
href: '/CSE5519'
},
/* CSE Courses Start */
CSE332S: {
title: 'CSE332S',
type: 'page',
theme:{
timestamp: true,
}
},
CSE347: {
title: 'CSE347',
type: 'page',
theme:{
timestamp: true,
}
},
CSE442T: {
title: 'CSE442T',
type: 'page',
theme:{
timestamp: true,
}
},
CSE5313: {
title: 'CSE5313',
type: 'page',
theme:{
timestamp: true,
}
},
CSE510: {
title: 'CSE510',
type: 'page',
theme:{
timestamp: true,
}
},
CSE559A: {
title: 'CSE559A',
type: 'page',
theme:{
timestamp: true,
}
},
CSE5519: {
title: 'CSE5519',
type: 'page',
theme:{
timestamp: true,
}
},
/* CSE Courses End */
Swap: {
display: 'hidden',
theme:{
timestamp: true,
}
},
index: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
about: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
},
contact: {
display: 'hidden',
theme:{
sidebar: false,
timestamp: true,
}
}
}

10
docker/prebuild.sh Normal file
View File

@@ -0,0 +1,10 @@
# This is pre-build script that cleans up resources and compiles for selected pages, then finally you may combine those subdirectories into one via nginx.
# double check you are using LF instead of CRLF
# please run this script in project root directory
echo "restore docker build _meta.js file"
cp "./docker/_meta.js" "./content/_meta.js"

View File

@@ -22,13 +22,6 @@ const bundleAnalyzer = withBundleAnalyzer({
export default bundleAnalyzer(withNextra({
output: 'standalone',
// static export start
// output: 'export',
// images: {
// unoptimized: true // mandatory, otherwise won't export
// },
// static export end
// eslint: {
// ignoreDuringBuilds: true,
// },

View File

@@ -1,7 +1,9 @@
{
"scripts": {
"dev": "next --turbopack",
"build": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build",
"build": "cross-env NODE_OPTIONS='--max-old-space-size=16384' next build",
"build:distribute": "sh ./distribute/prebuild.sh && cross-env NODE_OPTIONS='--max-old-space-size=16384' next build",
"build:vercel": "cross-env VERCEL_FORCE_NO_BUILD_CACHE=1 NODE_OPTIONS='--max-old-space-size=16384' next build",
"build:test": "cross-env ANALYZE=true NODE_OPTIONS='--inspect --max-old-space-size=4096' next build",
"build:analyze": "cross-env ANALYZE=true NODE_OPTIONS='--max-old-space-size=16384' next build",
"postbuild": "next-sitemap && pagefind --site .next/server/app --output-path out/_pagefind",