From 4cf397757148ab2f4300680f546835643c824e4b Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Wed, 22 Oct 2025 17:28:20 -0500 Subject: [PATCH 1/8] Fix broken Slack link --- docs/connect_with/training.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/connect_with/training.md b/docs/connect_with/training.md index 0d912178d..685d3a79c 100644 --- a/docs/connect_with/training.md +++ b/docs/connect_with/training.md @@ -68,6 +68,6 @@ Gain foundational skills in research computing while working alongside graduate ## Registration and Schedule -Workshops are offered throughout the academic year with both daytime and evening sessions to accommodate different schedules. Registration is free for SLU community members. Check our [news pages](/news) or [Join our Slack workspace](https://oss-slu.slack.com) for upcoming sessions. +Workshops are offered throughout the academic year with both daytime and evening sessions to accommodate different schedules. Registration is free for SLU community members. Check our [news pages](/news) or [Join our Slack workspace](https://join.slack.com/t/oswslu/shared_invite/zt-24f0qhjbo-NkSfQ4LOg5wXxBdxP4vzfA) for upcoming sessions. Contact [oss@slu.edu](mailto:oss@slu.edu) to request specific topics, suggest new workshop ideas, or arrange lab-specific training sessions. \ No newline at end of file From 5bf05f3a389bbdea7c7c3b75935e24195103cb23 Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Thu, 23 Oct 2025 15:40:06 -0500 Subject: [PATCH 2/8] Refactor sidebar to group links under parent page Since `connect_with/participants` is a directory linking to other pages, it makes sense for the pages it links to to be children under it in the sidebar structure. This was part of the confusion I initially experienced when trying to find the Slack link, as I didn't know whether it would be under "Participate" or "Contribute." --- sidebars.js | 48 +++++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/sidebars.js b/sidebars.js index 48d32caa7..735949ce4 100644 --- a/sidebars.js +++ b/sidebars.js @@ -93,30 +93,32 @@ const sidebars = { label: 'Get involved as an individual', items: [ { + type: 'category', label: 'Participate', - type: 'doc', - id: 'connect_with/participants', - }, - { - label: 'Contribute', - type: 'doc', - id: 'connect_with/community' - }, - { - label: 'Experience', - type: 'doc', - id: 'connect_with/experience' - }, - { - label: 'Lead', - type: 'doc', - id: 'connect_with/leadership' - }, - { - label: 'Mentor', - type: 'doc', - id: 'connect_with/mentor' - }, + link: {type: 'doc', id: 'connect_with/participants'}, + items: [ + { + label: 'Contribute', + type: 'doc', + id: 'connect_with/community' + }, + { + label: 'Experience', + type: 'doc', + id: 'connect_with/experience' + }, + { + label: 'Lead', + type: 'doc', + id: 'connect_with/leadership' + }, + { + label: 'Mentor', + type: 'doc', + id: 'connect_with/mentor' + }, + ] + } ] }, { From 59a793b01c34514d950095af55326df61c951045 Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Thu, 23 Oct 2025 15:44:15 -0500 Subject: [PATCH 3/8] Remove extra category --- sidebars.js | 46 ++++++++++++++++++++-------------------------- 1 file changed, 20 insertions(+), 26 deletions(-) diff --git a/sidebars.js b/sidebars.js index 735949ce4..bd18e4aa8 100644 --- a/sidebars.js +++ b/sidebars.js @@ -91,34 +91,28 @@ const sidebars = { { type: 'category', label: 'Get involved as an individual', + link: {type: 'doc', id: 'connect_with/participants'}, items: [ { - type: 'category', - label: 'Participate', - link: {type: 'doc', id: 'connect_with/participants'}, - items: [ - { - label: 'Contribute', - type: 'doc', - id: 'connect_with/community' - }, - { - label: 'Experience', - type: 'doc', - id: 'connect_with/experience' - }, - { - label: 'Lead', - type: 'doc', - id: 'connect_with/leadership' - }, - { - label: 'Mentor', - type: 'doc', - id: 'connect_with/mentor' - }, - ] - } + label: 'Contribute', + type: 'doc', + id: 'connect_with/community' + }, + { + label: 'Experience', + type: 'doc', + id: 'connect_with/experience' + }, + { + label: 'Lead', + type: 'doc', + id: 'connect_with/leadership' + }, + { + label: 'Mentor', + type: 'doc', + id: 'connect_with/mentor' + }, ] }, { From e477a88b559edc420b655e69e1dc6fe5f0f28224 Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Thu, 23 Oct 2025 15:53:25 -0500 Subject: [PATCH 4/8] Reorganize other sidebar items to match structure --- sidebars.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/sidebars.js b/sidebars.js index bd18e4aa8..de3f3c529 100644 --- a/sidebars.js +++ b/sidebars.js @@ -118,12 +118,8 @@ const sidebars = { { type: 'category', label: 'Partner as an organization', + link: {type: 'doc', id: 'connect_with/partners'}, items: [ - { - label: 'Partner', - type: 'doc', - id: 'connect_with/partners', - }, { label: 'Engage Programs', type: 'doc', @@ -149,11 +145,8 @@ const sidebars = { { type: 'category', label: 'Consult with an expert', + link: {type: 'doc', id: 'connect_with/consult'}, items: [ - { - type: 'doc', - id: 'connect_with/consult', - }, { label: 'Research Software Consults', type: 'doc', From c349f210bfd4db9afdcbe4f3bd396119f2d1bd38 Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Thu, 23 Oct 2025 15:55:05 -0500 Subject: [PATCH 5/8] Rename sidebar item to better match destination --- sidebars.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sidebars.js b/sidebars.js index de3f3c529..621417f52 100644 --- a/sidebars.js +++ b/sidebars.js @@ -90,7 +90,7 @@ const sidebars = { items: [ { type: 'category', - label: 'Get involved as an individual', + label: 'Participate as an individual', link: {type: 'doc', id: 'connect_with/participants'}, items: [ { From 9e230041e2ed369b7c7fccdb13b4c4baea7a372b Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Fri, 7 Nov 2025 19:53:45 -0600 Subject: [PATCH 6/8] Create initial Slack button --- docusaurus.config.js | 12 ++++++++++++ src/components/SlackButton.js | 12 ++++++++++++ src/theme/NavbarItem/ComponentTypes.js | 7 +++++++ 3 files changed, 31 insertions(+) create mode 100644 src/components/SlackButton.js create mode 100644 src/theme/NavbarItem/ComponentTypes.js diff --git a/docusaurus.config.js b/docusaurus.config.js index 7c9a269e1..816c1f5e1 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -185,6 +185,18 @@ const config = { ] }, {to: '/news', label: 'News', position: 'left'}, + { + type: 'doc', + docId: 'connect_with/community', + label: 'Contribute', + position: 'right', + className: 'button button--secondary button--lg', + }, + { + type: 'custom-myAwesomeNavbarItem', + position: 'right', + className: 'button button--secondary button--lg', + }, { type: 'doc', docId: 'connect_with/donate', diff --git a/src/components/SlackButton.js b/src/components/SlackButton.js new file mode 100644 index 000000000..d022fa1af --- /dev/null +++ b/src/components/SlackButton.js @@ -0,0 +1,12 @@ +import React from 'react'; +import styles from '../pages/index.module.css'; + +function SlackButton() { + return ( + + ) +} + +export default SlackButton; \ No newline at end of file diff --git a/src/theme/NavbarItem/ComponentTypes.js b/src/theme/NavbarItem/ComponentTypes.js new file mode 100644 index 000000000..5c8906c78 --- /dev/null +++ b/src/theme/NavbarItem/ComponentTypes.js @@ -0,0 +1,7 @@ +import ComponentTypes from '@theme-original/NavbarItem/ComponentTypes'; +import SlackButton from '@site/src/components/SlackButton'; + +export default { + ...ComponentTypes, + 'custom-myAwesomeNavbarItem': SlackButton, +}; \ No newline at end of file From c65d31622747550be053363f120c9ad06820b19f Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Sun, 16 Nov 2025 16:51:32 -0600 Subject: [PATCH 7/8] Fix button appearance --- docusaurus.config.js | 11 ++--------- src/components/SlackButton.js | 7 +++---- src/theme/NavbarItem/ComponentTypes.js | 2 +- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 816c1f5e1..872048fc3 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -186,16 +186,9 @@ const config = { }, {to: '/news', label: 'News', position: 'left'}, { - type: 'doc', - docId: 'connect_with/community', - label: 'Contribute', - position: 'right', - className: 'button button--secondary button--lg', - }, - { - type: 'custom-myAwesomeNavbarItem', + type: 'custom-SlackButton', position: 'right', - className: 'button button--secondary button--lg', + className: 'navbar__item navbar__link button button--secondary button--lg', }, { type: 'doc', diff --git a/src/components/SlackButton.js b/src/components/SlackButton.js index d022fa1af..e1707172a 100644 --- a/src/components/SlackButton.js +++ b/src/components/SlackButton.js @@ -1,11 +1,10 @@ import React from 'react'; -import styles from '../pages/index.module.css'; -function SlackButton() { +function SlackButton({ className }) { return ( - + }}>Contribute ) } diff --git a/src/theme/NavbarItem/ComponentTypes.js b/src/theme/NavbarItem/ComponentTypes.js index 5c8906c78..3e33756c9 100644 --- a/src/theme/NavbarItem/ComponentTypes.js +++ b/src/theme/NavbarItem/ComponentTypes.js @@ -3,5 +3,5 @@ import SlackButton from '@site/src/components/SlackButton'; export default { ...ComponentTypes, - 'custom-myAwesomeNavbarItem': SlackButton, + 'custom-SlackButton': SlackButton, }; \ No newline at end of file From c1a71df9bf92de03ea706e24150ab32adee419c9 Mon Sep 17 00:00:00 2001 From: Leandru Martin Date: Sun, 16 Nov 2025 17:25:57 -0600 Subject: [PATCH 8/8] Adjust styling and stop link reloading full page --- docusaurus.config.js | 2 +- src/components/SlackButton.js | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.js b/docusaurus.config.js index 872048fc3..2ca1f3d6f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -188,7 +188,7 @@ const config = { { type: 'custom-SlackButton', position: 'right', - className: 'navbar__item navbar__link button button--secondary button--lg', + className: 'navbar__item navbar__link', }, { type: 'doc', diff --git a/src/components/SlackButton.js b/src/components/SlackButton.js index e1707172a..12201a443 100644 --- a/src/components/SlackButton.js +++ b/src/components/SlackButton.js @@ -1,10 +1,15 @@ import React from 'react'; +import { Link } from 'react-router-dom'; function SlackButton({ className }) { return ( - { - window.open('https://join.slack.com/t/oswslu/shared_invite/zt-24f0qhjbo-NkSfQ4LOg5wXxBdxP4vzfA', '_blank').focus() - }}>Contribute + + Contribute + ) }