From 7091378d356128277415e18e741140d158621ee6 Mon Sep 17 00:00:00 2001 From: Trance-0 <60459821+Trance-0@users.noreply.github.com> Date: Mon, 24 Nov 2025 15:42:04 -0600 Subject: [PATCH] updates? --- distribute/CSE332S/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/CSE347/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/CSE442T/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/CSE510/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/CSE5313/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/CSE5519/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/CSE559A/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math3200/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math401/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math4111/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math4121/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math416/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math4201/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Math429/_meta.js | 119 +++++++++++++++++++++++++++++++++++ distribute/Swap/_meta.js | 117 ++++++++++++++++++++++++++++++++++ distribute/create_meta.py | 15 +++-- distribute/prebuild.sh | 21 +++++-- 17 files changed, 1807 insertions(+), 12 deletions(-) create mode 100644 distribute/CSE332S/_meta.js create mode 100644 distribute/CSE347/_meta.js create mode 100644 distribute/CSE442T/_meta.js create mode 100644 distribute/CSE510/_meta.js create mode 100644 distribute/CSE5313/_meta.js create mode 100644 distribute/CSE5519/_meta.js create mode 100644 distribute/CSE559A/_meta.js create mode 100644 distribute/Math3200/_meta.js create mode 100644 distribute/Math401/_meta.js create mode 100644 distribute/Math4111/_meta.js create mode 100644 distribute/Math4121/_meta.js create mode 100644 distribute/Math416/_meta.js create mode 100644 distribute/Math4201/_meta.js create mode 100644 distribute/Math429/_meta.js create mode 100644 distribute/Swap/_meta.js diff --git a/distribute/CSE332S/_meta.js b/distribute/CSE332S/_meta.js new file mode 100644 index 0000000..6f97558 --- /dev/null +++ b/distribute/CSE332S/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/CSE347/_meta.js b/distribute/CSE347/_meta.js new file mode 100644 index 0000000..7a8c523 --- /dev/null +++ b/distribute/CSE347/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/CSE442T/_meta.js b/distribute/CSE442T/_meta.js new file mode 100644 index 0000000..7861256 --- /dev/null +++ b/distribute/CSE442T/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/CSE510/_meta.js b/distribute/CSE510/_meta.js new file mode 100644 index 0000000..ec24ca4 --- /dev/null +++ b/distribute/CSE510/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/CSE5313/_meta.js b/distribute/CSE5313/_meta.js new file mode 100644 index 0000000..7af78ea --- /dev/null +++ b/distribute/CSE5313/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/CSE5519/_meta.js b/distribute/CSE5519/_meta.js new file mode 100644 index 0000000..101006a --- /dev/null +++ b/distribute/CSE5519/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/CSE559A/_meta.js b/distribute/CSE559A/_meta.js new file mode 100644 index 0000000..fd7b579 --- /dev/null +++ b/distribute/CSE559A/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math3200/_meta.js b/distribute/Math3200/_meta.js new file mode 100644 index 0000000..42a2ed7 --- /dev/null +++ b/distribute/Math3200/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math401/_meta.js b/distribute/Math401/_meta.js new file mode 100644 index 0000000..b33d555 --- /dev/null +++ b/distribute/Math401/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math4111/_meta.js b/distribute/Math4111/_meta.js new file mode 100644 index 0000000..0553395 --- /dev/null +++ b/distribute/Math4111/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math4121/_meta.js b/distribute/Math4121/_meta.js new file mode 100644 index 0000000..b252259 --- /dev/null +++ b/distribute/Math4121/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math416/_meta.js b/distribute/Math416/_meta.js new file mode 100644 index 0000000..e90e849 --- /dev/null +++ b/distribute/Math416/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math4201/_meta.js b/distribute/Math4201/_meta.js new file mode 100644 index 0000000..3250b42 --- /dev/null +++ b/distribute/Math4201/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Math429/_meta.js b/distribute/Math429/_meta.js new file mode 100644 index 0000000..5e7ffd7 --- /dev/null +++ b/distribute/Math429/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/Swap/_meta.js b/distribute/Swap/_meta.js new file mode 100644 index 0000000..5ea6b41 --- /dev/null +++ b/distribute/Swap/_meta.js @@ -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, + } + } + } \ No newline at end of file diff --git a/distribute/create_meta.py b/distribute/create_meta.py index eb451d0..0f7307d 100644 --- a/distribute/create_meta.py +++ b/distribute/create_meta.py @@ -16,7 +16,8 @@ import json from pathlib import Path import re -root_dir=Path.joinpath(Path(os.path.dirname(os.path.abspath(__file__))).parent, 'content') +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 @@ -33,14 +34,16 @@ 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(root_dir, sub_dir, '_meta.js') + 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=repr(sub_dir+link_match) - cur_course_match=repr(sub_dir+course_parse) + 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(link_match, cur_link_match, new_text) + new_text=re.sub(cur_link_match, cur_course_match, new_text) print (f'parsed course file: {new_text}') - # Path(sub_meta_file).write_text(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) diff --git a/distribute/prebuild.sh b/distribute/prebuild.sh index c6dfe9b..25def83 100644 --- a/distribute/prebuild.sh +++ b/distribute/prebuild.sh @@ -7,13 +7,22 @@ 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}" -$first =~ s@(\w+\d+.*)\s*:\s*(\{\s+.+\s+.+)\s+.+\s+.+\s+.+\s+(\},)@$1_link:$2\n href: \x27/$1\x27\n $3@gmx +cp ./${KEEP_PAGES}/_meta.js ../content/_meta.js -perl -0777 -pe first -i ./content/_meta.js +# remove other subdirectories +for dir in ../content/; do + if [ "$dir" != "${KEEP_PAGES}/" ]; then + rm -rf $dir + fi +done -$second =~ s@@${KEEP_PAGES}:$2\n theme:{\n timestamp: true,\n }\n $3@gmx +# remove public directory +for dir in ../public/; do + if [ "$dir" != "${KEEP_PAGES}/" ]; then + rm -rf $dir + fi +done + +echo "Done clearing up resources and compiling for ${KEEP_PAGES}" -# Write saved pages back -perl -0777 -pe '' -i ./content/_meta.js -# cat ./content/_meta.js