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 diff --git a/docusaurus.config.js b/docusaurus.config.js index 7c9a269e1..2ca1f3d6f 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -185,6 +185,11 @@ const config = { ] }, {to: '/news', label: 'News', position: 'left'}, + { + type: 'custom-SlackButton', + position: 'right', + className: 'navbar__item navbar__link', + }, { type: 'doc', docId: 'connect_with/donate', diff --git a/sidebars.js b/sidebars.js index 48d32caa7..621417f52 100644 --- a/sidebars.js +++ b/sidebars.js @@ -90,13 +90,9 @@ const sidebars = { items: [ { type: 'category', - label: 'Get involved as an individual', + label: 'Participate as an individual', + link: {type: 'doc', id: 'connect_with/participants'}, items: [ - { - label: 'Participate', - type: 'doc', - id: 'connect_with/participants', - }, { label: 'Contribute', type: 'doc', @@ -122,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', @@ -153,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', diff --git a/src/components/SlackButton.js b/src/components/SlackButton.js new file mode 100644 index 000000000..12201a443 --- /dev/null +++ b/src/components/SlackButton.js @@ -0,0 +1,16 @@ +import React from 'react'; +import { Link } from 'react-router-dom'; + +function SlackButton({ className }) { + return ( + + Contribute + + ) +} + +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..3e33756c9 --- /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-SlackButton': SlackButton, +}; \ No newline at end of file