Skip to content

Simple banner to advertise workshop.#1183

Merged
CallumWalley merged 1 commit intomainfrom
workshop-ad
Mar 9, 2026
Merged

Simple banner to advertise workshop.#1183
CallumWalley merged 1 commit intomainfrom
workshop-ad

Conversation

@CallumWalley
Copy link
Member

@CallumWalley CallumWalley commented Mar 9, 2026

image

note:

not a smart banner like for office hours. Will need to be manually removed when regos close.
banner wont show when office hours banner up (too crowded).
closed banner will reappear on reload (no cookies)

@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

Test deployment successful!! (2026-03-09T03:00:35Z)
Preview available at https://callumwalley.github.io/mkdocs-demo-deploy/nesi/support-docs/workshop-ad

See all deployed demo sites

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the website's event notification system by introducing a more flexible banner mechanism. It refactors the existing calendar banner functionality and adds a new banner to promote an upcoming workshop, allowing for easier management and display of various event announcements.

Highlights

  • Function Renaming: The showCalendarBanner function was renamed to showOfficeBanner to better reflect its purpose, as it now handles general office hours rather than just calendar events.
  • Dynamic Banner IDs: The addBanner utility function was updated to accept a dynamic id parameter, enabling the creation and management of multiple distinct banners on the page.
  • New Workshop Banner: A new conditional banner was introduced to advertise an "Introduction to HPC Carpentry Workshop", displayed only if no calendar banner is currently active.
  • CSS Refactoring: The CSS styling for banners was generalized by replacing the specific #calendar-banner ID selector with a reusable .md-event-banner class, improving modularity and reusability.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • docs/assets/javascripts/general.js
    • The showCalendarBanner function was renamed to showOfficeBanner.
    • The addBanner function was updated to accept an id parameter, allowing for unique banner identification.
    • New code was added to conditionally display a workshop registration banner if no calendar banner is present.
  • docs/assets/stylesheets/theme.css
    • The CSS rules for banners were updated to use the .md-event-banner class instead of the #calendar-banner ID, making the styling more generic and reusable.
Activity
  • No specific activity has been recorded for this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


A banner, bright and new, Workshop calls, for all to view. Code refactored, clean.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@CallumWalley CallumWalley merged commit 157ab3b into main Mar 9, 2026
8 checks passed
@CallumWalley CallumWalley deleted the workshop-ad branch March 9, 2026 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant